From: Junio C Hamano Date: Tue, 16 May 2006 01:12:06 +0000 (-0700) Subject: Merge branch 'jc/grep' X-Git-Tag: v1.4.0-rc1~142 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=efca578eec57869994da0982e05dcf1dee0bc213;p=git.git Merge branch 'jc/grep' * jc/grep: (22 commits) Fix silly typo in new builtin grep builtin-grep: unparse more command line options. builtin-grep: use external grep when we can take advantage of it builtin-grep: -F (--fixed-strings) builtin-grep: -w fix builtin-grep: typofix builtin-grep: tighten argument parsing. builtin-grep: documentation Teach -f option to builtin-grep. builtin-grep: -L (--files-without-match). builtin-grep: binary files -a and -I builtin-grep: terminate correctly at EOF builtin-grep: tighten path wildcard vs tree traversal. builtin-grep: support -w (--word-regexp). builtin-grep: support -c (--count). builtin-grep: allow more than one patterns. builtin-grep: allow - and -[ABC] notation for context lines. builtin-grep: printf %.*s length is int, not ptrdiff_t. builtin-grep: do not use setup_revisions() builtin-grep: support '-l' option. ... --- efca578eec57869994da0982e05dcf1dee0bc213 diff --cc Makefile index f4b6ef875,8d5122bdd..93779b06f --- a/Makefile +++ b/Makefile @@@ -216,7 -214,7 +216,8 @@@ LIB_OBJS = $(DIFF_OBJS) BUILTIN_OBJS = \ - builtin-log.o builtin-help.o builtin-count.o builtin-diff.o builtin-push.o - builtin-log.o builtin-help.o builtin-grep.o ++ builtin-log.o builtin-help.o builtin-count.o builtin-diff.o builtin-push.o \ ++ builtin-grep.o GITLIBS = $(LIB_FILE) $(XDIFF_LIB) LIBS = $(GITLIBS) -lz diff --cc builtin.h index bb63f0729,cf5de3b93..7744f7d2f --- a/builtin.h +++ b/builtin.h @@@ -19,9 -19,6 +19,10 @@@ extern int cmd_version(int argc, const extern int cmd_whatchanged(int argc, const char **argv, char **envp); extern int cmd_show(int argc, const char **argv, char **envp); extern int cmd_log(int argc, const char **argv, char **envp); +extern int cmd_diff(int argc, const char **argv, char **envp); +extern int cmd_count_objects(int argc, const char **argv, char **envp); + +extern int cmd_push(int argc, const char **argv, char **envp); + extern int cmd_grep(int argc, const char **argv, char **envp); #endif diff --cc git.c index 49ba5189d,893bddd76..a94d9ee5a --- a/git.c +++ b/git.c @@@ -46,9 -46,7 +46,10 @@@ static void handle_internal_command(in { "log", cmd_log }, { "whatchanged", cmd_whatchanged }, { "show", cmd_show }, + { "push", cmd_push }, + { "count-objects", cmd_count_objects }, + { "diff", cmd_diff }, + { "grep", cmd_grep }, }; int i;