]> git.ipfire.org Git - thirdparty/git.git/blobdiff - git-rebase.sh
Merge branch 'js/read-tree' into js/c-merge-recursive
[thirdparty/git.git] / git-rebase.sh
index 29028dd5fc0669cd2d7d3b956bfdd2583cc785b7..cb1a9ce12c932f532003ee78c965ee7f839bd207 100755 (executable)
@@ -35,7 +35,13 @@ If you would prefer to skip this patch, instead run \"git rebase --skip\".
 To restore the original branch and stop rebasing run \"git rebase --abort\".
 "
 unset newbase
-strategy=recursive
+case "${GIT_USE_RECUR_FOR_RECURSIVE}" in
+'')
+       strategy=recursive ;;
+?*)
+       strategy=recur ;;
+esac
+
 do_merge=
 dotest=$GIT_DIR/.dotest-merge
 prec=4
@@ -200,6 +206,11 @@ do
        shift
 done
 
+case "$strategy,${GIT_USE_RECUR_FOR_RECURSIVE}" in
+recursive,?*)
+       strategy=recur ;;
+esac
+
 # Make sure we do not have .dotest
 if test -z "$do_merge"
 then