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

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

From
Heiko Voigt <hvoigt@hvoigt.net>
Date
Mar 6, 2014, 22:00 UTC
Message-ID
<20140306220034.GA30645@sandbox-ub>
In-Reply-To
<5318CE14.1090000@web.de>
On Thu, Mar 06, 2014 at 08:35:48PM +0100, Jens Lehmann wrote:
Show 27 quoted lines
> Am 06.03.2014 01:15, schrieb Henri GEIST:
> > 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?

I think because git gui is using plumbing everywhere, it is supposed to be just another porcelain. And I guess that was an intended decision because porcelain might change its output and break git gui. At least thats what I inferred.

Cheers Heiko
Previous: Jens LehmannNext: Henri GEIST
Message 5 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.