diff options
Diffstat (limited to 'git-playtree-setup')
-rwxr-xr-x | git-playtree-setup | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/git-playtree-setup b/git-playtree-setup index 184de4d..61ba3b1 100755 --- a/git-playtree-setup +++ b/git-playtree-setup @@ -7,6 +7,8 @@ # mkdir .git/some/play/thing # cd .git/some/play/thing # git-playtree-setup . +# +# Honours GIT_PLAYTREE_DEFAULT_BRANCH, which currently defaults to "master" set -e${GIT_PLAYTREE_SETUP_DEBUG} @@ -26,8 +28,9 @@ case "$gcd" in *) gcd="../$gcd" ;; esac -git init -q +git -c init.defaultBranch=${GIT_PLAYTREE_DEFAULT_BRANCH-master} init -q git config gc.auto 0 +git config diff.noprefix 0 unset_all () { git config --local --unset-all $key || [ $? = 5 ]; } |