mroth / scmpuff

:1234: Numeric file shortcuts for common git commands
https://mroth.github.io/scmpuff/
MIT License
384 stars 22 forks source link

fatal: '' is not a valid branch name #81

Open tekumara opened 9 months ago

tekumara commented 9 months ago

Branch names that are all digits:

❯ git checkout -b 713
fatal: '' is not a valid branch name
❯ which git
git () {
        case $1 in
                (commit | blame | log | rebase | merge) scmpuff exec -- "$SCMPUFF_GIT_CMD" "$@" ;;
                (checkout | diff | rm | reset | restore) scmpuff exec --relative -- "$SCMPUFF_GIT_CMD" "$@" ;;
                (add) scmpuff exec -- "$SCMPUFF_GIT_CMD" "$@"
                        scmpuff_status ;;
                (*) "$SCMPUFF_GIT_CMD" "$@" ;;
        esac
}

scmpuff 0.5.0 zsh