Merge branch 'lt/dirwalk' into next
authorJunio C Hamano <junkio@cox.net>
Sat, 20 May 2006 00:30:34 +0000 (17:30 -0700)
committerJunio C Hamano <junkio@cox.net>
Sat, 20 May 2006 00:30:34 +0000 (17:30 -0700)
* lt/dirwalk:
  Add builtin "git rm" command
  Move pathspec matching from builtin-add.c into dir.c

1  2 
Makefile
builtin-add.c
builtin.h
git.c

diff --cc Makefile
Simple merge
diff --cc builtin-add.c
Simple merge
diff --cc builtin.h
index 78275ea45124c1f4972288b5b02f6bc18745b1fe,c1cb765deac0b83735a053cfaeb7fd41044d7ae1..d150c7ce5624e7ece666d6a639fb8e59aa018bed
+++ b/builtin.h
@@@ -25,8 -24,7 +25,9 @@@ extern int cmd_count_objects(int argc, 
  
  extern int cmd_push(int argc, const char **argv, char **envp);
  extern int cmd_grep(int argc, const char **argv, char **envp);
+ extern int cmd_rm(int argc, const char **argv, char **envp);
  extern int cmd_add(int argc, const char **argv, char **envp);
 +extern int cmd_rev_list(int argc, const char **argv, char **envp);
 +extern int cmd_check_ref_format(int argc, const char **argv, char **envp);
  
  #endif
diff --cc git.c
index 7db5cc1a5544b1c5c96fff8e9a28cc3cf5382f32,20c0f197a355299600898a1e9ca3e20dceb14645..63aa31143563323f1318e26ce4fa9f298473c47f
--- 1/git.c
--- 2/git.c
+++ b/git.c
@@@ -51,9 -50,8 +51,10 @@@ static void handle_internal_command(in
                { "count-objects", cmd_count_objects },
                { "diff", cmd_diff },
                { "grep", cmd_grep },
+               { "rm", cmd_rm },
                { "add", cmd_add },
 +              { "rev-list", cmd_rev_list },
 +              { "check-ref-format", cmd_check_ref_format }
        };
        int i;