Skip to content

Refactoring for apply and diff

Wincent Colaiuta git 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest4 patches 3 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/4Fix "diff --check" whitespace detectiondiff.c t/t4015-diff-whitespace.sh+18 -30 replies
2/4Extract and improve whitespace check from "git apply"builtin-apply.c cache.h ws.c+73 -473 replies
4/4Add tests for pre-commit and commit-msg hookst/t7501-commit.sh t/t7503-pre-commit-hook.sh t/t7504-commit-msg-hook.sh+153 -11 reply
4/4Add tests for "git diff --check" with core.whitespace optionst/t4015-diff-whitespace.sh+48 -00 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/4] Refactoring for apply and diff

4 more patches which apply on top of the "git diff --check" topic I posted previously. If you'd prefer any of these to be prepared for application on top of "master" or "next" let me know.

[1/4] Fix "diff --check" whitespace detection

Fix bug noticed while comparing the whitespace checks in "git apply" and "git diff". It's exactly this kind of bug which motivates the refactoring which follows...

[2/4] Extract and improve whitespace check from "git apply"

Extract (and improve) some stuff out of "apply"...

[3/4] Make "diff --check" use shared whitespace functions

... so that the same code can be used by "diff".

[4/4] Add tests for "git diff --check" with core.whitespace options

Cheers,
Wincent