summaryrefslogtreecommitdiff
path: root/diff.c
diff options
context:
space:
mode:
authorLibravatar Junio C Hamano <gitster@pobox.com>2018-08-15 15:08:22 -0700
committerLibravatar Junio C Hamano <gitster@pobox.com>2018-08-15 15:08:22 -0700
commit706b0b5e8d683b06e99bdfb2349228b360e4cf03 (patch)
tree6f1f5a53673bd1d33bd43ae2552df5ed965ffc34 /diff.c
parentMerge branch 'bw/protocol-v2' (diff)
parentdiff: --color-moved: rename "dimmed_zebra" to "dimmed-zebra" (diff)
downloadtgif-706b0b5e8d683b06e99bdfb2349228b360e4cf03.tar.xz
Merge branch 'es/diff-color-moved-fix'
One of the "diff --color-moved" mode "dimmed_zebra" that was named in an unusual way has been deprecated and replaced by "dimmed-zebra". * es/diff-color-moved-fix: diff: --color-moved: rename "dimmed_zebra" to "dimmed-zebra"
Diffstat (limited to 'diff.c')
-rw-r--r--diff.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/diff.c b/diff.c
index 04d044bbb6..0746d59fe6 100644
--- a/diff.c
+++ b/diff.c
@@ -271,10 +271,12 @@ static int parse_color_moved(const char *arg)
return COLOR_MOVED_ZEBRA;
else if (!strcmp(arg, "default"))
return COLOR_MOVED_DEFAULT;
+ else if (!strcmp(arg, "dimmed-zebra"))
+ return COLOR_MOVED_ZEBRA_DIM;
else if (!strcmp(arg, "dimmed_zebra"))
return COLOR_MOVED_ZEBRA_DIM;
else
- return error(_("color moved setting must be one of 'no', 'default', 'blocks', 'zebra', 'dimmed_zebra', 'plain'"));
+ return error(_("color moved setting must be one of 'no', 'default', 'blocks', 'zebra', 'dimmed-zebra', 'plain'"));
}
static int parse_color_moved_ws(const char *arg)