summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 5f35afa)
raw | patch | inline | side by side (parent: 5f35afa)
author | Tay Ray Chuan <rctay89@gmail.com> | |
Mon, 10 May 2010 17:17:46 +0000 (01:17 +0800) | ||
committer | Junio C Hamano <gitster@pobox.com> | |
Mon, 10 May 2010 18:57:32 +0000 (11:57 -0700) |
Signed-off-by: Tay Ray Chuan <rctay89@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
t/t7604-merge-custom-message.sh | patch | blob | history |
index d79542d847627f0e8bb228b69baac8e75b70a5f2..af53df1c1b0773133dd9883492e286898e60a0c6 100755 (executable)
create_merge_msgs() {
echo >exp.subject "custom message"
+
+ cp exp.subject exp.log &&
+ echo >>exp.log "" &&
+ echo >>exp.log "* commit 'c2':" &&
+ echo >>exp.log " c2"
}
test_expect_success 'setup' '
test_cmp exp.subject actual
'
+test_expect_failure '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 &&
+ test_cmp exp.log actual
+'
+
test_done