Re: [PATCH v3 3/3] grep: fix grepping for "intent to add" files

2016-07-01 Thread Junio C Hamano
Charles Bailey writes: > +test_expect_success 'grep can find things only in the work tree' ' > + : >work-tree-only && > + git add work-tree-only && > + test_when_finished "git rm -f work-tree-only" && It is better to have the test_when_finished before "git

[PATCH v3 3/3] grep: fix grepping for "intent to add" files

2016-06-30 Thread Charles Bailey
From: Charles Bailey This reverts commit 4d5520053 (grep: make it clear i-t-a entries are ignored, 2015-12-27) and adds an alternative fix to maintain the -L --cached behavior. 4d5520053 caused 'git grep' to no longer find matches in new files in the working tree where