]> git.ipfire.org Git - thirdparty/git.git/commitdiff
Merge branch 'nd/ita-cleanup' into maint
authorJunio C Hamano <gitster@pobox.com>
Thu, 28 Jul 2016 18:25:51 +0000 (11:25 -0700)
committerJunio C Hamano <gitster@pobox.com>
Thu, 28 Jul 2016 18:25:51 +0000 (11:25 -0700)
Git does not know what the contents in the index should be for a
path added with "git add -N" yet, so "git grep --cached" should not
show hits (or show lack of hits, with -L) in such a path, but that
logic does not apply to "git grep", i.e. searching in the working
tree files.  But we did so by mistake, which has been corrected.

* nd/ita-cleanup:
  grep: fix grepping for "intent to add" files
  t7810-grep.sh: fix a whitespace inconsistency
  t7810-grep.sh: fix duplicated test name

1  2 
builtin/grep.c
t/t7810-grep.sh

diff --cc builtin/grep.c
Simple merge
diff --cc t/t7810-grep.sh
Simple merge