4 # rm -rf .git/some/play/thing
5 # git-playtree-setup .git/some/play/thing
7 # mkdir .git/some/play/thing
8 # cd .git/some/play/thing
17 *) echo >&2 'bad usage' ; exit 8 ;;
20 [ "x$target" = x. ] || mkdir $target
23 gcd=$(cd .. && git rev-parse --git-common-dir)
32 unset_all () { git config --local --unset-all $key || [ $? = 5 ]; }
35 user.email user.name user.useConfigOnly \
36 core.sharedRepository \
37 core.compression core.looseCompression \
38 core.bigFileThreshold core.fsyncObjectFiles \
42 git --git-dir="$gcd" config -z --get-all $key || [ $? = 1 ]
43 ) | xargs -n1 -0r -- \
44 git config --local --add $key
48 ln -s "$gcd/objects" .git/objects