Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/git/git.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohannes Schindelin <johannes.schindelin@gmx.de>2018-12-10 22:04:59 +0300
committerJunio C Hamano <gitster@pobox.com>2018-12-11 11:19:01 +0300
commit969de3ff0e01282cc061892f47b5f04b22de76af (patch)
tree7cb57f640d3a3dfa681969c0d837607623dd7232 /git-legacy-rebase.sh
parentd421afa0c66ec6bbd15602d534f77546c516f2a5 (diff)
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>
Diffstat (limited to 'git-legacy-rebase.sh')
-rwxr-xr-xgit-legacy-rebase.sh2
1 files changed, 2 insertions, 0 deletions
diff --git a/git-legacy-rebase.sh b/git-legacy-rebase.sh
index 699fc4da7e2..37db5a7ca46 100755
--- a/git-legacy-rebase.sh
+++ b/git-legacy-rebase.sh
@@ -99,6 +99,8 @@ case "$(git config --bool commit.gpgsign)" in
true) gpg_sign_opt=-S ;;
*) gpg_sign_opt= ;;
esac
+test "$(git config --bool rebase.reschedulefailedexec)" = "true" &&
+reschedule_failed_exec=--reschedule-failed-exec
. git-rebase--common
read_basic_state () {