diff options
author | Tay Ray Chuan <rctay89@gmail.com> | 2010-05-11 01:17:52 +0800 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2010-05-10 12:02:20 -0700 |
commit | f0ecac2b70bf6b44b89dfa493abd2f544010b1eb (patch) | |
tree | 2fd6c98705ae583f32b25d9ee36567e5a2554b65 /t/t7604-merge-custom-message.sh | |
parent | 8c6bdfdf8ba9a3d7a03d64b7a98305a460921130 (diff) | |
download | git-f0ecac2b70bf6b44b89dfa493abd2f544010b1eb.tar.gz |
merge: --log appends shortlog to message if specified
When the user specifies a message, use fmt_merge_msg_shortlog() to
append the shortlog.
Previously, when a message was specified, we ignored the merge title
("Merge <foo> into <bar>") and shortlog from fmt_merge_msg().
Update the documentation for -m to reflect this too.
Signed-off-by: Tay Ray Chuan <rctay89@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 't/t7604-merge-custom-message.sh')
-rwxr-xr-x | t/t7604-merge-custom-message.sh | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/t/t7604-merge-custom-message.sh b/t/t7604-merge-custom-message.sh index af53df1c1b..9114785ef7 100755 --- a/t/t7604-merge-custom-message.sh +++ b/t/t7604-merge-custom-message.sh @@ -40,7 +40,7 @@ test_expect_success 'merge c2 with a custom message' ' test_cmp exp.subject actual ' -test_expect_failure 'merge --log appends to custom message' ' +test_expect_success 'merge --log appends to custom message' ' git reset --hard c1 && git merge --log -m "$(cat exp.subject)" c2 && git cat-file commit HEAD | sed -e "1,/^$/d" >actual && |