Skip to content

RFC diff whitespace tweaks

Wincent Colaiuta git 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 RFC Latest2 patches 2 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2Use "whitespace" consistentlyDocumentation/diff-options.txt Documentation/glossary.txt diff.c+9 -90 replies
2/2"diff --check" should affect exit statusDocumentation/diff-options.txt builtin-diff-files.c builtin-diff-index.c +5 more+70 -152 replies

Reviews trailers per patch

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

Read the v1 thread

Cover letter [RFC PATCH 0/2] diff whitespace tweaks

[1/2] Use "whitespace" consistently

This one is a simple consistency fix that should go on top of "master".

[2/2] "diff --check" should affect exit status

This one is why I put "RFC" in the subject line. Basically, when I discovered that "diff --check" didn't affect the exit status of the command I thought it might be a bug, in which case this fix or one like it should go in for 1.5.4. This patch also applies on top of "master".

But if you don't consider that to be a bug then I guess it's "next" or even "pu" material and I can bring it back up after 1.5.4 is out.

Another reason why I label this as "RFC" is that the diff machinery is fairly bulky and I was not familiar with it. So this patch is the result of someone who has looked at the source for half an hour and deduced enough to implement the desired behaviour; but somone who truly groks the diff code may be able to think of a nicer implementation.