Grepping with intent to add
Get series with b4
b4 am [email protected]Versions newest first
- v3 Latest3 patches 3 repliesIn review
Patches in v3 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/3 | t7810-grep.sh: fix duplicated test namet/ | +1 | 1 reply | |
| 2/3 | t7810-grep.sh: fix a whitespace inconsistencyt/ | +1 | 0 replies | |
| 3/3 | grep: fix grepping for "intent to add" filesbuiltin/ t/ | +60 | 1 reply |
Reviews trailers per patch
None of the 3 patches has a Reviewed-by or Acked-by.
| Patch | Nguyễn Thái Ngọc Duy |
|---|---|
| 1/3 | |
| 2/3 | |
| 3/3 | Helped-by |
Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.
Cover letter [PATCH v3 0/3] Grepping with intent to add
So I've got back around to this topic again.
I've applied fixes to the tests as suggested by Eric and Junio.
I came up with a test case that demonstrates a difference between the additional fix that Duy suggested and the alternative that Junio suggested.
I've kept Duy's fix because I think it makes more sense, although it's a sufficiently obscure case that I don't feel strongly that it's definitely the best behavior.
The fix ensures that if you have a file which is both "intend to add" and "assume unchanged" that it is not listed if you "grep -L" for for something. In effect, we are applying the "contents indeterminate" state of the index to the working tree file.
Charles Bailey (3):
t7810-grep.sh: fix duplicated test name
t7810-grep.sh: fix a whitespace inconsistency
grep: fix grepping for "intent to add" files
builtin/grep.c | 4 ++-- t/t7810-grep.sh | 62 +++++++++++++++++++++++++++++++++++++++++++++++++++++++-- 2 files changed, 62 insertions(+), 4 deletions(-)
Signature · 1 line
2.8.2.311.gee88674