summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 1c7b76b)
raw | patch | inline | side by side (parent: 1c7b76b)
author | Junio C Hamano <gitster@pobox.com> | |
Thu, 10 Jul 2008 07:50:59 +0000 (00:50 -0700) | ||
committer | Junio C Hamano <gitster@pobox.com> | |
Thu, 10 Jul 2008 08:05:47 +0000 (01:05 -0700) |
The command forgot the configuration variable when rewritten in C.
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
builtin-merge.c | patch | blob | history | |
t/t7600-merge.sh | patch | blob | history |
diff --git a/builtin-merge.c b/builtin-merge.c
index b2e702a11fe0c1849caf0da508f9f2febecb5439..2ee16746908179960fcd57dc16d042d24f741833 100644 (file)
--- a/builtin-merge.c
+++ b/builtin-merge.c
return git_config_string(&pull_twohead, k, v);
else if (!strcmp(k, "pull.octopus"))
return git_config_string(&pull_octopus, k, v);
+ else if (!strcmp(k, "merge.log") || !strcmp(k, "merge.summary"))
+ option_log = git_config_bool(k, v);
return git_diff_ui_config(k, v, cb);
}
diff --git a/t/t7600-merge.sh b/t/t7600-merge.sh
index d21cd290d3d8e3d912b94045f3d3d9db8bdd7e7d..72ef2e55d9f9c175d94d4b37fac7606f537b6c71 100755 (executable)
--- a/t/t7600-merge.sh
+++ b/t/t7600-merge.sh
git merge --no-log c2 &&
git show -s --pretty=format:%b HEAD >msg.act &&
verify_diff msg.nolog msg.act "[OOPS] bad merge log message" &&
+
git merge --log c3 &&
git show -s --pretty=format:%b HEAD >msg.act &&
+ verify_diff msg.log msg.act "[OOPS] bad merge log message" &&
+
+ git reset --hard HEAD^ &&
+ git config merge.log yes &&
+ git merge c3 &&
+ git show -s --pretty=format:%b HEAD >msg.act &&
verify_diff msg.log msg.act "[OOPS] bad merge log message"
'