git log: configurable default format for merge diffs
Get series with b4
b4 am [email protected]Versions newest first
- v1 Latest9 patches 17 repliesIn review
Patches in v1 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/9 | diff-merges: introduce --diff-merges=defdiff-merges.c | +6 | 4 replies | |
| 2/9 | diff-merges: refactor set_diff_merges()diff-merges.c | +24 | 0 replies | |
| 3/9 | diff-merges: introduce log.diffMerges config variablebuiltin/ diff-merges.c diff-merges.h | +15 | 4 replies | |
| 4/9 | diff-merges: adapt -m to enable default diff formatdiff-merges.c | +4 | 0 replies | |
| 5/9 | t4013: add test for --diff-merges=deft/ | +8 | 0 replies | |
| 6/9 | t4013: add tests for log.diffMerges configt/ | +26 | 3 replies | |
| 7/9 | t9902: fix completion tests for log.d* to match log.diffMergest/ | +3 | 6 replies | |
| 8/9 | doc/diff-options: document new --diff-merges featuresDocumentation/ | +11 | 0 replies | |
| 9/9 | doc/config: document log.diffMergesDocumentation/ | +5 | 0 replies |
Reviews trailers per patch
No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.
Cover letter [PATCH 0/9] git log: configurable default format for merge diffs
These patches introduce capability to configure the default format of output of diffs for merge commits by means of new log.diffMerges configuration variable. The default format is then used by -m, --diff-merges=m, and new --diff-merges=def options.
In particular,
git config log.diffMerges first-parent
will change -m option format from "separate" to "first-parent" that will in turn cause, say,
git show -m <merge_commit>
to output diff to the first parent only, instead of appending typically large and surprising diff to the second parent at the end of the output.
Sergey Organov (9):
diff-merges: introduce --diff-merges=def
diff-merges: refactor set_diff_merges()
diff-merges: introduce log.diffMerges config variable
diff-merges: adapt -m to enable default diff format
t4013: add test for --diff-merges=def
t4013: add tests for log.diffMerges config
t9902: fix completion tests for log.d* to match log.diffMerges doc/diff-options: document new --diff-merges features doc/config: document log.diffMerges
Documentation/config/log.txt | 5 +++ Documentation/diff-options.txt | 15 ++++++--- builtin/log.c | 2 ++ diff-merges.c | 58 ++++++++++++++++++++++++---------- diff-merges.h | 2 ++ t/t4013-diff-various.sh | 34 ++++++++++++++++++++ t/t9902-completion.sh | 3 ++ 7 files changed, 98 insertions(+), 21 deletions(-)
Signature · 1 line
2.25.1