mirror of
https://github.com/git/git.git
synced 2026-01-10 10:13:33 +00:00
cherry-pick --continue: remember options
Remember --allow-empty, --allow-empty-message and --keep-redundant-commits when cherry-pick stops for a conflict resolution. Signed-off-by: Phillip Wood <phillip.wood@dunelm.org.uk> Signed-off-by: Junio C Hamano <gitster@pobox.com>
This commit is contained in:
committed by
Junio C Hamano
parent
36b0503a19
commit
6860ce5d8e
@@ -410,7 +410,7 @@ test_expect_success 'cherry-pick preserves sparse-checkout' '
|
||||
test_i18ngrep ! "Changes not staged for commit:" actual
|
||||
'
|
||||
|
||||
test_expect_failure 'cherry-pick --continue remembers --keep-redundant-commits' '
|
||||
test_expect_success 'cherry-pick --continue remembers --keep-redundant-commits' '
|
||||
test_when_finished "git cherry-pick --abort || :" &&
|
||||
pristine_detach initial &&
|
||||
test_must_fail git cherry-pick --keep-redundant-commits picked redundant &&
|
||||
@@ -419,7 +419,7 @@ test_expect_failure 'cherry-pick --continue remembers --keep-redundant-commits'
|
||||
git cherry-pick --continue
|
||||
'
|
||||
|
||||
test_expect_failure 'cherry-pick --continue remembers --allow-empty and --allow-empty-message' '
|
||||
test_expect_success 'cherry-pick --continue remembers --allow-empty and --allow-empty-message' '
|
||||
test_when_finished "git cherry-pick --abort || :" &&
|
||||
pristine_detach initial &&
|
||||
test_must_fail git cherry-pick --allow-empty --allow-empty-message \
|
||||
|
||||
Reference in New Issue
Block a user