improve range-diffs coloring and [RFC] move detection
Get series with b4
b4 am [email protected]Versions newest first
- v1 Latest7 patches 5 repliesIn review
Patches in v1 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/7 | diff.c: emit_line_0 to take string instead of first signdiff.c | +17 | 0 replies | |
| 2/7 | diff.c: add --output-indicator-{new, old, context}diff.c diff.h | +22 | 0 replies | |
| 3/7 | range-diff: make use of different output indicatorsrange-diff.c | +14 | 0 replies | |
| 4/7 | range-diff: indent special lines as contextrange-diff.c t/ | +8 | 0 replies | |
| 5/7 | diff.c: rename color_moved to markup_moveddiff.c diff.h | +15 | 0 replies | |
| 6/7 | diff.c: factor determine_line_color out of emit_diff_symbol_from_structdiff.c | +44 | 0 replies | |
| 7/7 | diff/am: enhance diff format to use */~ for moved linesapply.c diff.c diff.h | +37 | 2 replies |
Reviews trailers per patch
No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.
Cover letter [PATCH 0/7] improve range-diffs coloring and [RFC] move detection
This builds on top of sb/range-diff-colors, which builds on js/range-diff. As Thomas seemed happy with the range-diff and said
"and fwiw I didn't think there's anything major that needs to be addressed." I found it reasonable to build more on top of those series.
[1] https://public-inbox.org/git/[email protected]/
It can also be found via
git fetch https://github.com/stefanbeller/git moved-in-patches
This series provides for 2 goals, which share a common base refactoring:
The refactoring part is to allow the diff machinery to prefix old/new/context lines with prefixes as chosen by the user.
The first feature is to slightly adapt coloring of range-diff to have the file markers
--- a/diff.c
+++ b/diff.c
be shown as context color. This is done by using custom prefixes for old/new/context lines in the inner diffs and indenting all other lines instead by a white space indicating it to be context.
The second feature is more RFC-ish in nature and just exposes the mechanism to the user in a meaning-ful way.
All of the diff family (including format-patch) as well as apply/am can use */~ instead of +/- for moved lines of code.
Thanks,
Stefan
Stefan Beller (7):
diff.c: emit_line_0 to take string instead of first sign diff.c: add --output-indicator-{new, old, context}
range-diff: make use of different output indicators
range-diff: indent special lines as context diff.c: rename color_moved to markup_moved diff.c: factor determine_line_color out of
emit_diff_symbol_from_struct
diff/am: enhance diff format to use */~ for moved lines
apply.c | 12 +++ diff.c | 180 ++++++++++++++++++++++++++---------------- diff.h | 10 ++- range-diff.c | 17 +++- t/t3206-range-diff.sh | 12 +-- 5 files changed, 153 insertions(+), 78 deletions(-)
Signature · 1 line
2.18.0.597.ga71716f1ad-goog