diff-merges: introduce log.diffMerges config variable
New log.diffMerges configuration variable sets the format that --diff-merges=on will be using. The default is "separate". t4013: add the following tests for log.diffMerges config: * Test that wrong values are denied. * Test that the value of log.diffMerges properly affects both --diff-merges=on and -m. t9902: fix completion tests for log.d* to match log.diffMerges. Added documentation for log.diffMerges. Signed-off-by: Sergey Organov <sorganov@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
This commit is contained in:

committed by
Junio C Hamano

parent
38fc4dbbc2
commit
17c13e60fd
@ -481,6 +481,8 @@ static int git_log_config(const char *var, const char *value, void *cb)
|
||||
decoration_style = 0; /* maybe warn? */
|
||||
return 0;
|
||||
}
|
||||
if (!strcmp(var, "log.diffmerges"))
|
||||
return diff_merges_config(value);
|
||||
if (!strcmp(var, "log.showroot")) {
|
||||
default_show_root = git_config_bool(var, value);
|
||||
return 0;
|
||||
|
Reference in New Issue
Block a user