]> git.ipfire.org Git - thirdparty/git.git/blobdiff - git-pull.sh
pull: add pull.ff configuration
[thirdparty/git.git] / git-pull.sh
index b946fd975bacae7b73645e0dba8ae61da716ccfc..44b792a5d2007d89d1735d1d114e439c3d365d99 100755 (executable)
@@ -52,6 +52,21 @@ if test -z "$rebase"
 then
        rebase=$(bool_or_string_config pull.rebase)
 fi
+
+# Setup default fast-forward options via `pull.ff`
+pull_ff=$(git config pull.ff)
+case "$pull_ff" in
+false)
+       no_ff=--no-ff
+       break
+       ;;
+only)
+       ff_only=--ff-only
+       break
+       ;;
+esac
+
+
 dry_run=
 while :
 do