Skip to content

Another preparatory series for rename detection

Stefan Beller git 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest10 patches 10 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/10diff: move line ending check into emit_hunk_headerdiff.c+3 -21 reply
2/10diff: emit_{add, del, context}_line to increase {pre,post}image line countdiff.c+6 -91 reply
3/10diff.c: drop tautologous condition in emit_line_0diff.c+1 -22 replies
4/10diff.c: rename diff_flush_patch to diff_flush_patch_filepairdiff.c+4 -41 reply
5/10diff.c: reintroduce diff_flush_patch for all filesdiff.c+12 -51 reply
6/10diff.c: emit_line_0 can handle no colordiff.c+4 -22 replies
7/10diff.c: convert fn_out_consume to use emit_line_*diff.c+19 -52 replies
8/10diff.c: convert emit_rewrite_diff to use emit_line_*diff.c+18 -150 replies
9/10diff.c: convert emit_rewrite_lines to use emit_line_0diff.c+1 -10 replies
10/10submodule.c: convert show_submodule_summary to use emit_line_fmtdiff.c diff.h submodule.c +1 more+23 -300 replies

Reviews trailers per patch

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

Read the v1 thread

Cover letter [PATCH 00/10] Another preparatory series for rename detection

From: Stefan Beller <[email protected]>

This applies on top of sb/diff-cleanup.

The long term strategy is to get the rename detection done, is to run any output through emit_line as there we can either write it to the output file or buffer it internally across file pairs and work on the buffered output.

As I got stuck with the word diff as well as the correct implementation of builtin_diff, I am sending this out as an intermediate state. As the diff code is central to Git, I'd rather send these cleanups early so I do not run into merge conflicts with other people down the road.

Thanks,
Stefan

Stefan Beller (10):
diff: move line ending check into emit_hunk_header
diff: emit_{add, del, context}_line to increase {pre,post}image line
count
diff.c: drop tautologous condition in emit_line_0
diff.c: rename diff_flush_patch to diff_flush_patch_filepair diff.c: reintroduce diff_flush_patch for all files diff.c: emit_line_0 can handle no color
diff.c: convert fn_out_consume to use emit_line_*
diff.c: convert emit_rewrite_diff to use emit_line_* diff.c: convert emit_rewrite_lines to use emit_line_0 submodule.c: convert show_submodule_summary to use emit_line_fmt

 diff.c      | 114 ++++++++++++++++++++++++++++++++++++------------------------
 diff.h      |   3 ++
 submodule.c |  42 +++++++++-------------
 submodule.h |   3 +-
 4 files changed, 89 insertions(+), 73 deletions(-)
Signature · 1 line
2.7.4