summaryrefslogtreecommitdiff
path: root/builtin/range-diff.c
diff options
context:
space:
mode:
authorJohannes Schindelin <johannes.schindelin@gmx.de>2024-12-16 14:11:22 +0000
committerJunio C Hamano <gitster@pobox.com>2024-12-16 08:45:48 -0800
commit4538338c7edb13a5e818abcfa5739f16ad3dda0c (patch)
treee7c07faf9756304f1d95ceeb955fabed5393e276 /builtin/range-diff.c
parentf8043236c6c9cb9e943a87ab2e55e8e394796727 (diff)
range-diff: introduce the convenience option `--remerge-diff`
Just like `git log`, now also `git range-diff` has that option as a shortcut for the common operation that would otherwise require the quite unwieldy (if theoretically "more correct") `--diff-mode=remerge` option. Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'builtin/range-diff.c')
-rw-r--r--builtin/range-diff.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/builtin/range-diff.c b/builtin/range-diff.c
index 901de5d133..2452654347 100644
--- a/builtin/range-diff.c
+++ b/builtin/range-diff.c
@@ -39,6 +39,8 @@ int cmd_range_diff(int argc,
PARSE_OPT_OPTARG),
OPT_PASSTHRU_ARGV(0, "diff-merges", &diff_merges_arg,
N_("style"), N_("passed to 'git log'"), 0),
+ OPT_PASSTHRU_ARGV(0, "remerge-diff", &diff_merges_arg, NULL,
+ N_("passed to 'git log'"), PARSE_OPT_NOARG),
OPT_BOOL(0, "left-only", &left_only,
N_("only emit output related to the first range")),
OPT_BOOL(0, "right-only", &right_only,