summaryrefslogtreecommitdiff
path: root/git.c
diff options
context:
space:
mode:
authorLinus Torvalds <torvalds@osdl.org>2006-05-17 16:33:32 (GMT)
committerJunio C Hamano <junkio@cox.net>2006-05-17 18:52:40 (GMT)
commit0d78153952e70c21e94dc6b7eefcb2ac5337a902 (patch)
treefa5a9124804890b42e911307caff4f8f536c2bb6 /git.c
parentb4189aa84873718f80c62846cd53e803b5f72362 (diff)
downloadgit-0d78153952e70c21e94dc6b7eefcb2ac5337a902.zip
git-0d78153952e70c21e94dc6b7eefcb2ac5337a902.tar.gz
git-0d78153952e70c21e94dc6b7eefcb2ac5337a902.tar.bz2
Do "git add" as a builtin
First try. Let's see how well this works. In many ways, the hard parts of "git commit" are not so different from this, and a builtin commit would share a lot of the code, I think. Signed-off-by: Linus Torvalds <torvalds@osdl.org> Signed-off-by: Junio C Hamano <junkio@cox.net>
Diffstat (limited to 'git.c')
-rw-r--r--git.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/git.c b/git.c
index a94d9ee..fac46af 100644
--- a/git.c
+++ b/git.c
@@ -50,6 +50,7 @@ static void handle_internal_command(int argc, const char **argv, char **envp)
{ "count-objects", cmd_count_objects },
{ "diff", cmd_diff },
{ "grep", cmd_grep },
+ { "add", cmd_add },
};
int i;