aboutsummaryrefslogtreecommitdiffstats
path: root/builtin/grep.c
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2023-08-02 09:37:23 -0700
committerJunio C Hamano <gitster@pobox.com>2023-08-02 09:37:23 -0700
commitfea92e4cac30b1204ecc8dfd53675bbdd68611e0 (patch)
treea243ef2eea40ee245bf954c2a4105683029a855c /builtin/grep.c
parentThe seventeenth batch (diff)
parenttree-walk: drop unused base_offset from do_match() (diff)
downloadgit-fea92e4cac30b1204ecc8dfd53675bbdd68611e0.tar.gz
git-fea92e4cac30b1204ecc8dfd53675bbdd68611e0.zip
Merge branch 'jc/tree-walk-drop-base-offset'
Code simplification. * jc/tree-walk-drop-base-offset: tree-walk: drop unused base_offset from do_match() tree-walk: lose base_offset that is never used in tree_entry_interesting
Diffstat (limited to 'builtin/grep.c')
-rw-r--r--builtin/grep.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/builtin/grep.c b/builtin/grep.c
index ce866523e2..50e712a184 100644
--- a/builtin/grep.c
+++ b/builtin/grep.c
@@ -643,7 +643,7 @@ static int grep_tree(struct grep_opt *opt, const struct pathspec *pathspec,
strbuf_addstr(&name, base->buf + tn_len);
match = tree_entry_interesting(repo->index,
&entry, &name,
- 0, pathspec);
+ pathspec);
strbuf_setlen(&name, name_base_len);
if (match == all_entries_not_interesting)