]> git.ipfire.org Git - thirdparty/git.git/commit - sequencer.c
cherry-pick: regression fix for empty commits
authorJunio C Hamano <gitster@pobox.com>
Wed, 30 May 2012 00:14:41 +0000 (17:14 -0700)
committerJunio C Hamano <gitster@pobox.com>
Wed, 30 May 2012 00:14:41 +0000 (17:14 -0700)
commitac2b0e8fb77d02f480af3f45a44cb9ea611008a4
tree0ee737307cb61cc33383246e2f4eae025778f4e4
parent4b580061b350ae9d27ab7c3936a45828a33624c6
cherry-pick: regression fix for empty commits

The earlier "--keep-redundant-commit" series broke "cherry-pick"
that is given a commit whose change is already in the current
history. Such a cherry-pick would result in an empty change, and
should stop with an error, telling the user that conflict resolution
may have made the result empty (which is exactly what is happening),
but we silently dropped the change on the floor without any message
nor non-zero exit code.

Signed-off-by: Junio C Hamano <gitster@pobox.com>
sequencer.c
t/t3505-cherry-pick-empty.sh