Resurrect "diff-lib.c: adjust position of i-t-a entries in diff"
Get series with b4
b4 am [email protected]Versions newest first
- v1 Latest8 patches 9 repliesIn review
Patches in v1 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/8 | blame: remove obsolete commentbuiltin/ | +0 | 0 replies | |
| 2/8 | Add and use convenient macro ce_intent_to_add()builtin/ cache-tree.c cache.h +1 more | +5 | 0 replies | |
| 3/8 | apply: fix adding new files on i-t-a entriesbuiltin/ t/ | +18 | 1 reply | |
| 4/8 | apply: make sure check_preimage() does not leave empty file on errorbuiltin/ t/ | +18 | 1 reply | |
| 5/8 | checkout(-index): do not checkout i-t-a entriesbuiltin/ builtin/ t/ | +40 | 3 replies | |
| 6/8 | grep: make it clear i-t-a entries are ignoredbuiltin/ | +1 | 2 replies | |
| 7/8 | diff.h: extend "flags" field to 64 bits because we're out of bitsbuiltin/ diff-lib.c diff.c +1 more | +9 | 2 replies | |
| 7/8 | diff.h: extend "flags" field to 64 bits because we're out of bitsbuiltin/ diff-lib.c diff.c +1 more | +9 | 0 replies | |
| 8/8 | Resurrect "diff-lib.c: adjust position of i-t-a entries in diff"Documentation/ diff-lib.c diff.c +3 more | +43 | 0 replies |
Reviews trailers per patch
No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.
Cover letter [PATCH 0/8] Resurrect "diff-lib.c: adjust position of i-t-a entries in diff"
Quoted 11 lines · Junio C Hamano
Quoted 8 lines
Quoted 6 lines
Perhaps a good and safe way forward to resurrect what
d95d728awanted to do is to first add an option to tellrun_diff_index()andrun_diff_files()which behaviour the caller wants to see, add that only to the caller inwt-status.c? Then incrementally pass that option from more callsites that we are absolutely certain that want this different worldview with respect to i-t-a?Agreed.
OK. Perhaps then first I should do that revert and we'll incrementally rebuild on top.
Here comes the rebuild. This adds --shift-ita option (and an internal flag) to enable this behavior. Those only take the last two patches. The remaining is to make sure we handle i-t-a entries correctly in some commands.
Nguyễn Thái Ngọc Duy (8):
blame: remove obsolete comment
Add and use convenient macro ce_intent_to_add()
apply: fix adding new files on i-t-a entries
apply: make sure check_preimage() does not leave empty file on error checkout(-index): do not checkout i-t-a entries
grep: make it clear i-t-a entries are ignored
diff.h: extend "flags" field to 64 bits because we're out of bits Resurrect "diff-lib.c: adjust position of i-t-a entries in diff"
Documentation/diff-options.txt | 6 +++ builtin/apply.c | 13 ++++--- builtin/blame.c | 5 --- builtin/checkout-index.c | 5 ++- builtin/checkout.c | 2 + builtin/commit.c | 2 +- builtin/grep.c | 2 +- builtin/rm.c | 2 +- cache-tree.c | 2 +- cache.h | 1 + diff-lib.c | 18 ++++++++- diff.c | 4 +- diff.h | 9 +++-- read-cache.c | 4 +- t/t2203-add-intent.sh | 83 +++++++++++++++++++++++++++++++++++++++++- wt-status.c | 2 + 16 files changed, 134 insertions(+), 26 deletions(-)
Signature · 1 line
2.3.0.rc1.137.g477eb31