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

Re: [PATCH/RFC] git-gui: Add a 'recursive' checkbox in the clone menu.

From
Jens Lehmann <jens.lehmann@web.de>
Date
Mar 6, 2014, 19:35 UTC
Message-ID
<5318CE14.1090000@web.de>
In-Reply-To
<1394064956.7891.28.camel@Naugrim>
Am 06.03.2014 01:15, schrieb Henri GEIST:
Show 15 quoted lines
> Le mercredi 05 mars 2014 à 19:00 +0100, Jens Lehmann a écrit :
>> Am 05.03.2014 00:01, schrieb Henri GEIST:
>> - Wouldn't it be easier to pass the '--recurse-submodules"
>>   option to the "git clone" call for the superproject instead
>>   of adding the _do_clone_submodules() function doing a
>>   subsequent "git submodule update --init --recursive"? That
>>   is also be more future proof with respect to the autoclone
>>   config option we have in mind (which would add that behavior
>>   for "git clone" itself, making the call you added redundant).
> 
> That is what I planned to do at beginning.
> But git-gui never call git clone anywhere.
> It make the clone step by step with a long and complicated list of
> commands just like a Tcl rewrite of git-clone.
> Have a look on the function _do_clone2 in choose_repository.tcl.

You're right, it does fetch followed by read-tree ... so my proposal doesn't make much sense here, sorry for bothering you without checking the source first.

> As I suspect there should be a good reason for this that I did not
> understand I have choose to not refactoring it.

That makes sense. Shawn, could you shed some light on why clone is coded again using plumbing in git gui instead of just calling the clone command?

> And in fact looking in the code 'git clone --recursive' do nothing
> else than calling 'git submodule update --init --recursive' like I
> have done to complete this rewrite of 'git-clone'.
Yep. Note to self: Port everything we add to clone to git gui too.
Previous: Henri GEISTNext: Heiko Voigt
Message 4 of 7 in “git-gui: Add a 'recursive' checkbox in the clone menu.”
  1. git-gui: Add a 'recursive' checkbox in the clone menu.Henri GEIST, Mar 4, 2014
  2. Jens LehmannMar 5, 2014
  3. Henri GEISTMar 6, 2014
  4. Jens LehmannMar 6, 2014
  5. Heiko VoigtMar 6, 2014
  6. Henri GEISTMar 11, 2014
  7. Jens LehmannMar 11, 2014

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.