summaryrefslogtreecommitdiffstats
path: root/builtin/grep.c
diff options
context:
space:
mode:
authorNguyễn Thái Ngọc Duy <pclouds@gmail.com>2018-09-21 17:57:23 +0200
committerJunio C Hamano <gitster@pobox.com>2018-09-21 18:48:10 +0200
commit38bbc2ea39372ce1b7eb494b31948f4a8a903f88 (patch)
tree12f62127a9530fb5397cb5e36122590f8b47915e /builtin/grep.c
parentdiff.c: remove the_index dependency in textconv() functions (diff)
downloadgit-38bbc2ea39372ce1b7eb494b31948f4a8a903f88.tar.xz
git-38bbc2ea39372ce1b7eb494b31948f4a8a903f88.zip
grep.c: remove implicit dependency on the_index
Signed-off-by: Nguyễn Thái Ngọc Duy <pclouds@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'builtin/grep.c')
-rw-r--r--builtin/grep.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/builtin/grep.c b/builtin/grep.c
index 601f801158..0667ffde84 100644
--- a/builtin/grep.c
+++ b/builtin/grep.c
@@ -904,9 +904,9 @@ int cmd_grep(int argc, const char **argv, const char *prefix)
OPT_END()
};
- init_grep_defaults();
+ init_grep_defaults(the_repository);
git_config(grep_cmd_config, NULL);
- grep_init(&opt, prefix);
+ grep_init(&opt, the_repository, prefix);
/*
* If there is no -- then the paths must exist in the working