[PATCH v1] git-clone.txt: add the --recursive option
- From
Alban Gruin <alban.gruin@gmail.com>
- Date
- Sep 13, 2021, 18:59 UTC
- Message-ID
- <20210913185941.6247-1-alban.gruin@gmail.com>
This adds the --recursive option, an alias of --recurse-submodule, to git-clone's manual page.
Signed-off-by: Alban Gruin <alban.gruin@gmail.com> --- I found this out when a friend told me he could not remember how to fetch submodules with git-clone, and when another one suggested `--recurse-submodule'. I checked the man page, and I was surprised to find out that `--recursive' is not mentionned at all.
I did not modify the synopsis. So, this alias, although shorter than the "real" option, would still be somewhat hidden in the man page.
Documentation/git-clone.txt | 1 + 1 file changed, 1 insertion(+)
diff --git a/Documentation/git-clone.txt b/Documentation/git-clone.txt index 3fe3810f1c..8a578252a0 100644 --- a/Documentation/git-clone.txt +++ b/Documentation/git-clone.txt @@ -270,6 +270,7 @@ branch. This is useful e.g. to maintain minimal clones of the default branch of some repository for search indexing. --recurse-submodules[=<pathspec>]:: +--recursive[=<pathspec>]:: After the clone is created, initialize and clone submodules within based on the provided pathspec. If no pathspec is provided, all submodules are initialized and cloned.
-- 2.30.2