# put all utility functions here

# make a temporary file
git_extra_mktemp() {
    mktemp -t "$(basename "$0")".XXXXXXX
}

git_extra_default_branch() {
    local default_branch
    default_branch=$(git config --get git-extras.default-branch)
    if [ -z "$default_branch" ]; then
        echo "master"
    else
        echo "$default_branch"
    fi
}
