Files
git/builtin
Chris Webb d9a9357572 Allow edit of empty message with commit --amend
"git commit --amend" used on a commit with an empty message fails
unless -m is given, whether or not --allow-empty-message is
specified.

Allow it to proceed to the editor with an empty commit message.
Unless --allow-empty-message is in force, it will still abort later
if an empty message is saved from the editor (this check was
already necessary to prevent a non-empty commit message being edited
to an empty one).

Add a test for --amend --edit of an empty commit message which fails
without this fix, as it's a rare case that won't get frequently
tested otherwise.

Signed-off-by: Chris Webb <chris@arachsys.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
2012-07-09 12:43:58 -07:00
..
2011-12-13 21:58:51 -08:00
2012-01-06 12:44:07 -08:00
2011-11-07 22:12:19 -08:00
2011-12-21 12:02:44 -08:00
2011-12-28 11:32:36 -08:00
2011-12-22 11:27:26 -08:00
2012-01-12 23:33:39 -08:00
2011-11-07 22:12:19 -08:00
2012-03-20 15:53:30 -07:00