diff: --color-moved: rename "dimmed_zebra" to "dimmed-zebra"
The --color-moved "dimmed_zebra" mode (with an underscore) is an anachronism. Most options and modes are hyphenated. It is more difficult to type and somewhat more difficult to read than those which are hyphenated. Therefore, rename it to "dimmed-zebra", and nominally deprecate "dimmed_zebra". Signed-off-by: Eric Sunshine <sunshine@sunshineco.com> Reviewed-by: Jonathan Nieder <jrnieder@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
This commit is contained in:
committed by
Junio C Hamano
parent
a42a58d7b6
commit
e3f2f5f9cd
4
diff.c
4
diff.c
@ -275,10 +275,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', 'zebra', 'dimmed_zebra', 'plain'"));
|
||||
return error(_("color moved setting must be one of 'no', 'default', 'zebra', 'dimmed-zebra', 'plain'"));
|
||||
}
|
||||
|
||||
int git_diff_ui_config(const char *var, const char *value, void *cb)
|
||||
|
||||
Reference in New Issue
Block a user