
___x_cmd_git_undo(){
    [ $# -gt 0 ]    ||      set -- --help

    local op="$1";  shift
    case "$op" in
        -h|--help)          ___x_cmd help -m git undo   "$@" ;;
        --app)              ___x_cmd_git_undo___app     "$@" ;;

        add|file|\
        commit|pull|\
        stash|stashpop)
                            ___x_cmd_git_undo_"$op"     "$@" ;;

        *)                  ___x_cmd_git_undo_commit    "$@" ;;
    esac
}

