Skip to content

Resurrect "diff-lib.c: adjust position of i-t-a entries in diff"

Nguyễn Thái Ngọc Duy git 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest8 patches 9 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/8blame: remove obsolete commentbuiltin/blame.c+0 -50 replies
2/8Add and use convenient macro ce_intent_to_add()builtin/rm.c cache-tree.c cache.h +1 more+5 -40 replies
3/8apply: fix adding new files on i-t-a entriesbuiltin/apply.c t/t2203-add-intent.sh+18 -41 reply
4/8apply: make sure check_preimage() does not leave empty file on errorbuiltin/apply.c t/t2203-add-intent.sh+18 -21 reply
5/8checkout(-index): do not checkout i-t-a entriesbuiltin/checkout-index.c builtin/checkout.c t/t2203-add-intent.sh+40 -13 replies
6/8grep: make it clear i-t-a entries are ignoredbuiltin/grep.c+1 -12 replies
7/8diff.h: extend "flags" field to 64 bits because we're out of bitsbuiltin/commit.c diff-lib.c diff.c +1 more+9 -72 replies
7/8diff.h: extend "flags" field to 64 bits because we're out of bitsbuiltin/commit.c diff-lib.c diff.c +1 more+9 -70 replies
8/8Resurrect "diff-lib.c: adjust position of i-t-a entries in diff"Documentation/diff-options.txt diff-lib.c diff.c +3 more+43 -20 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

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 d95d728a wanted to do is to first add an option to tell run_diff_index() and run_diff_files() which behaviour the caller wants to see, add that only to the caller in wt-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