[merge]
tool = vimdiff
+[push]
+ # When running git push without a refspec push only the current
+ # branch, see man page git-config(1) for details.
+ default = simple
+
[format]
# When using git format-patch use threads and add all patches as
# replies to the first one.
generate gitconfig .in simple_cpp \
PWD -- "`pwd`"
+ # Older Git versions don't support push.default = simple.
+ if ! git status >/dev/null 2>&1; then
+ echo 'gitconfig: removing push.default = simple'
+ grep_i -v '^[[:space:]]default = simple$' gitconfig
+ fi
# Older Git versions don't support --patience.
if ! git diff --patience >/dev/null 2>&1; then
sed_i 's/--patience//' gitconfig