mirror of
https://github.com/git/git.git
synced 2026-01-10 10:13:33 +00:00
rebase: add a config option to default to --reschedule-failed-exec
It would be cumbersome to type out that option all the time, so let's offer the convenience of a config setting: rebase.rescheduleFailedExec. Besides, this opens the door to changing the default in a future version of Git: it does make some sense to reschedule failed `exec` commands by default (and if we could go back in time when the `exec` command was invented, we probably would change that default right from the start). Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de> Signed-off-by: Junio C Hamano <gitster@pobox.com>
This commit is contained in:
committed by
Junio C Hamano
parent
d421afa0c6
commit
969de3ff0e
@@ -257,7 +257,12 @@ test_expect_success 'the todo command "break" works' '
|
||||
test_expect_success '--reschedule-failed-exec' '
|
||||
test_when_finished "git rebase --abort" &&
|
||||
test_must_fail git rebase -x false --reschedule-failed-exec HEAD^ &&
|
||||
grep "^exec false" .git/rebase-merge/git-rebase-todo
|
||||
grep "^exec false" .git/rebase-merge/git-rebase-todo &&
|
||||
git rebase --abort &&
|
||||
test_must_fail git -c rebase.rescheduleFailedExec=true \
|
||||
rebase -x false HEAD^ 2>err &&
|
||||
grep "^exec false" .git/rebase-merge/git-rebase-todo &&
|
||||
test_i18ngrep "has been rescheduled" err
|
||||
'
|
||||
|
||||
test_done
|
||||
|
||||
Reference in New Issue
Block a user