# put all utility functions here # make a temporary file git_extra_mktemp() { mktemp -t "$(basename "$0")".XXXXXXX } git_extra_default_branch() { local extras_default_branch init_default_branch extras_default_branch=$(git config --get git-extras.default-branch) init_default_branch=$(git config --get init.defaultBranch) if [ -n "$extras_default_branch" ]; then echo "$extras_default_branch" elif [ -n "$init_default_branch" ]; then echo "$init_default_branch" else echo "main" fi }