summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: d599e04)
raw | patch | inline | side by side (parent: d599e04)
author | Tay Ray Chuan <rctay89@gmail.com> | |
Mon, 10 May 2010 17:17:45 +0000 (01:17 +0800) | ||
committer | Junio C Hamano <gitster@pobox.com> | |
Mon, 10 May 2010 18:57:31 +0000 (11:57 -0700) |
Squash in a minor rename too.
Signed-off-by: Tay Ray Chuan <rctay89@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Signed-off-by: Tay Ray Chuan <rctay89@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
t/t7604-merge-custom-message.sh | patch | blob | history |
index 269cfdf267443f67ef8c6c921610bc856f4e506b..d79542d847627f0e8bb228b69baac8e75b70a5f2 100755 (executable)
. ./test-lib.sh
+create_merge_msgs() {
+ echo >exp.subject "custom message"
+}
+
test_expect_success 'setup' '
echo c0 > c0.c &&
git add c0.c &&
echo c2 > c2.c &&
git add c2.c &&
git commit -m c2 &&
- git tag c2
+ git tag c2 &&
+ create_merge_msgs
'
test_expect_success 'merge c2 with a custom message' '
git reset --hard c1 &&
- echo >expected "custom message" &&
- git merge -m "custom message" c2 &&
+ git merge -m "$(cat exp.subject)" c2 &&
git cat-file commit HEAD | sed -e "1,/^$/d" >actual &&
- test_cmp expected actual
+ test_cmp exp.subject actual
'
test_done