From: Nguyễn Thái Ngọc Duy Date: Wed, 23 Jul 2008 14:55:35 GMT Subject: [PATCH 01/12] git-grep: read config Message-ID: <20080723145535.GA29053@laptop> Signed-off-by: Nguyễn Thái Ngọc Duy --- builtin-grep.c | 2 ++ 1 files changed, 2 insertions(+), 0 deletions(-) diff --git a/builtin-grep.c b/builtin-grep.c index 631129d..cc9ba6b 100644 --- a/builtin-grep.c +++ b/builtin-grep.c @@ -517,6 +517,8 @@ int cmd_grep(int argc, const char **argv, const char *prefix) const char **paths = NULL; int i; + git_config(git_default_config, NULL); + memset(&opt, 0, sizeof(opt)); opt.prefix_length = (prefix && *prefix) ? strlen(prefix) : 0; opt.relative = 1; -- 1.5.5.GIT