git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: [PATCH v1] git-clone.txt: add the --recursive option

From
Junio C Hamano <gitster@pobox.com>
Date
Sep 13, 2021, 21:43 UTC
Message-ID
<xmqqsfy8cft4.fsf@gitster.g>
In-Reply-To
<CAPig+cR=HUDgFctXzcigZ062c=QWYfGWUPuT7scc-xU_w3NT1w@mail.gmail.com>
Eric Sunshine <sunshine@sunshineco.com> writes:
Show 18 quoted lines
> On Mon, Sep 13, 2021 at 3:14 PM Alban Gruin <alban.gruin@gmail.com> wrote:
>> 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.
>
> Considering that the `--recursive` option was intentionally removed
> from `git-clone.txt` by bb62e0a99f (clone: teach --recurse-submodules
> to optionally take a pathspec, 2017-03-17), it's not clear that this
> change helps the situation.

A logical continuation of what bb62e0a99f tried to do might be to hide the --recursive[=<pathspec>] from "git clone -h", I guess.

Previous: Junio C Hamano
Message 10 of 10 in “git-clone.txt: add the --recursive option”
  1. git-clone.txt: add the --recursive optionAlban Gruin, Sep 13, 2021
  2. Eric SunshineSep 13, 2021
  3. Alban GruinSep 13, 2021
  4. Eric SunshineSep 13, 2021
  5. Alban GruinSep 14, 2021
  6. Junio C HamanoSep 14, 2021
  7. Eric SunshineSep 14, 2021
  8. Junio C HamanoSep 14, 2021
  9. Re* [PATCH v1] git-clone.txt: add the --recursive optionJunio C Hamano, Sep 14, 2021
  10. Junio C HamanoSep 13, 2021

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.