Skip to content

Bug fixes regarding diff and "git add -N"

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 Latest2 patches 2 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2diff --cached: do not report i-t-a entries as "new"diff-lib.c+2 -012 replies
2/2diff-files: mark i-t-a paths as "new"builtin/add.c diff-lib.c+6 -01 reply

Reviews trailers per patch

None of the 2 patches has a Reviewed-by or Acked-by.

PatchMichael J GruberJunio C Hamano
1/2Helped-by Helped-by Helped-by Helped-by
2/2

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v1 thread

Cover letter [PATCH/RFC 0/2] Bug fixes regarding diff and "git add -N"

The first one attempts to fix "git status" reporting intent-to-add files as "changes to be committed". The "new file" report is now moved to "git diff-files" aka "changes not staged for commit" instead.

I just want to check if I'm going on the right direction as core diff machinery is not really my area. I know these patches break t2203 and t4011 but from a quick glance, the tests simply rely on the old behavior, not real breakages.

Nguyễn Thái Ngọc Duy (2):
diff --cached: do not report i-t-a entries as "new"
diff-files: mark i-t-a paths as "new"

 builtin/add.c | 1 +
 diff-lib.c    | 7 +++++++
 2 files changed, 8 insertions(+)
Signature · 1 line
2.3.0.rc1.137.g477eb31