diff options
author | Ramkumar Ramachandra <artagnon@gmail.com> | 2012-09-22 16:57:59 +0530 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2012-09-25 11:31:48 -0700 |
commit | af9c9f97137dfb3f20a17d76520803c0312fd3e4 (patch) | |
tree | 8ad5e10520b6cd36497ed07c2fc70dedefbc07e1 /Documentation | |
parent | bafc478f1618534fcb85bedc0fa224bd2d462441 (diff) | |
download | git-af9c9f97137dfb3f20a17d76520803c0312fd3e4.tar.gz git-af9c9f97137dfb3f20a17d76520803c0312fd3e4.tar.xz |
submodule: if $command was not matched, don't parse other args
"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: Ramkumar Ramachandra <artagnon@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'Documentation')
-rw-r--r-- | Documentation/git-submodule.txt | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/Documentation/git-submodule.txt b/Documentation/git-submodule.txt index 2de7bf090..b4683bba1 100644 --- a/Documentation/git-submodule.txt +++ b/Documentation/git-submodule.txt @@ -112,7 +112,6 @@ status:: initialized, `+` if the currently checked out submodule commit does not match the SHA-1 found in the index of the containing repository and `U` if the submodule has merge conflicts. - This command is the default command for 'git submodule'. + If `--recursive` is specified, this command will recurse into nested submodules, and show their status as well. |