• R
    submodule: if $command was not matched, don't parse other args · af9c9f97
    Ramkumar Ramachandra 提交于
    "git submodule" command DWIMs the command line and assumes a
    unspecified action word for 'status' action.  This is a UI mistake
    that leads to a confusing behaviour.  A mistyped command name is
    instead treated as a request for 'status' of the submodule with that
    name, e.g.
    
        $ git submodule show
        error: pathspec 'show' did not match any file(s) known to git.
        Did you forget to 'git add'?
    
    Stop DWIMming an unknown or mistyped subcommand name as pathspec
    given to unspelled "status" subcommand.  "git submodule" without any
    argument is still interpreted as "git submodule status", but its
    value is questionable.
    
    Adjust t7400 to match, and stop advertising the default subcommand
    being 'status' which does not help much in practice, other than
    promoting laziness and confusion.
    Signed-off-by: NRamkumar Ramachandra <artagnon@gmail.com>
    Signed-off-by: NJunio C Hamano <gitster@pobox.com>
    af9c9f97
git-submodule.sh 22.5 KB