Re: [PATCH] git-submodule.txt: document default behavior
- From
Duy Nguyen <pclouds@gmail.com>
- Date
- Feb 12, 2019, 05:33 UTC
- Message-ID
- <CACsJy8ADLyog0ntfij+MUhPXHZfK-xQnnQPd5pvapttZQ9ZZ5w@mail.gmail.com>
- In-Reply-To
- <0b62f65a8016c41b96aa6caead366e1ed9dda333.1549944164.git.liu.denton@gmail.com>
On Tue, Feb 12, 2019 at 11:04 AM Denton Liu <liu.denton@gmail.com> wrote:
Show 18 quoted lines
> > This patch documents the default behavior of git-submodule if no > subcommands are given, similar to how git-remote.txt documents it. > > Signed-off-by: Denton Liu <liu.denton@gmail.com> > --- > Documentation/git-submodule.txt | 3 +++ > 1 file changed, 3 insertions(+) > > diff --git a/Documentation/git-submodule.txt b/Documentation/git-submodule.txt > index ba3c4df550..9bc98da154 100644 > --- a/Documentation/git-submodule.txt > +++ b/Documentation/git-submodule.txt > @@ -28,6 +28,9 @@ For more information about submodules, see linkgit:gitsubmodules[7]. > > COMMANDS > -------- > +With no arguments, shows the status of existing submodules. Several
Maybe just "The default command is 'status'" and let the user read that subcommand for more info.
Show 8 quoted lines
> +subcommands are available to perform operations on the submodules. > + > add [-b <branch>] [-f|--force] [--name <name>] [--reference <repository>] [--depth <depth>] [--] <repository> [<path>]:: > Add the given repository as a submodule at the given path > to the changeset to be committed next to the current > -- > 2.20.1.530.g88cfe87ec3 >
-- Duy