summaryrefslogtreecommitdiff
path: root/tree-diff.c
diff options
context:
space:
mode:
authorNguyễn Thái Ngọc Duy <pclouds@gmail.com>2010-12-17 12:45:33 (GMT)
committerJunio C Hamano <gitster@pobox.com>2011-02-03 22:08:31 (GMT)
commit1376e50723228fc21b7183fe86d71ee484a70dd7 (patch)
treeb4034d3052c3332fb78359074a663cf0d4f098ff /tree-diff.c
parente5e062b6dcdbbc338a0501b97a35e2e5efa56075 (diff)
downloadgit-1376e50723228fc21b7183fe86d71ee484a70dd7.zip
git-1376e50723228fc21b7183fe86d71ee484a70dd7.tar.gz
git-1376e50723228fc21b7183fe86d71ee484a70dd7.tar.bz2
grep: drop pathspec_matches() in favor of tree_entry_interesting()
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 'tree-diff.c')
-rw-r--r--tree-diff.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/tree-diff.c b/tree-diff.c
index 03dc5c8..3954281 100644
--- a/tree-diff.c
+++ b/tree-diff.c
@@ -72,7 +72,7 @@ static void show_tree(struct diff_options *opt, const char *prefix,
if (all_interesting)
show = 1;
else {
- show = tree_entry_interesting(&desc->entry, base,
+ show = tree_entry_interesting(&desc->entry, base, 0,
&opt->pathspec);
if (show == 2)
all_interesting = 1;
@@ -124,7 +124,7 @@ static void skip_uninteresting(struct tree_desc *t, struct strbuf *base,
struct diff_options *opt, int *all_interesting)
{
while (t->size) {
- int show = tree_entry_interesting(&t->entry, base, &opt->pathspec);
+ int show = tree_entry_interesting(&t->entry, base, 0, &opt->pathspec);
if (show == 2)
*all_interesting = 1;
if (!show) {