]> git.ipfire.org Git - thirdparty/git.git/commit - builtin/commit.c
commit: do not lose SQUASH_MSG contents
authorSven Strickroth <sven@cs-ware.de>
Mon, 21 Mar 2016 22:29:40 +0000 (23:29 +0100)
committerJunio C Hamano <gitster@pobox.com>
Mon, 21 Mar 2016 22:32:24 +0000 (15:32 -0700)
commitb64c1e0718f4a54d75b8faf0421471faa531af68
tree6f8db8e995f8e37bb773834f0d9f96d1fd7621ba
parentf932729cc7707390f4d6739be1573e93ceb9df22
commit: do not lose SQUASH_MSG contents

When concluding a conflicted "git merge --squash", the command
failed to read SQUASH_MSG that was prepared by "git merge", and
showed only the "# Conflicts:" list of conflicted paths.

Place the contents from SQUASH_MSG at the beginning, just like we
show the commit log skeleton first when concluding a normal merge,
and then show the "# Conflicts:" list, to help the user write the
log message for the resulting commit.

Test by Junio C Hamano <gitster@pobox.com>.

Signed-off-by: Sven Strickroth <sven@cs-ware.de>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
builtin/commit.c
t/t7600-merge.sh