cherry-pick: add --allow-empty-message option
authorChris Webb <chris@arachsys.com>
Thu, 2 Aug 2012 10:38:51 +0000 (11:38 +0100)
committerJunio C Hamano <gitster@pobox.com>
Mon, 6 Aug 2012 16:59:53 +0000 (09:59 -0700)
commit4bee958479bed1d3a8f20a75f33422ee49939dbf
treee24a4ea9b183c3eb9c5bea21caf0c6d5ff0bf4ee
parent3fe4498197ced84886b4adaddf18f1109b477f8e
cherry-pick: add --allow-empty-message option

Scripts such as "git rebase -i" cannot currently cherry-pick commits
which have an empty commit message, as git cherry-pick calls git
commit without the --allow-empty-message option.

Add an --allow-empty-message option to git cherry-pick which is passed
through to git commit, so this behaviour can be overridden.

Signed-off-by: Chris Webb <chris@arachsys.com>
Reviewed-by: Neil Horman <nhorman@tuxdriver.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Documentation/git-cherry-pick.txt
builtin/revert.c
sequencer.c
sequencer.h
t/t3505-cherry-pick-empty.sh