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

Re: Re* [RFC] submodule+shallow clone feature request

From
Peter Hutterer <peter.hutterer@who-t.net>
Date
Feb 11, 2010, 06:51 UTC
Message-ID
<20100211065101.GA12261@barra.bne.redhat.com>
In-Reply-To
<7v8wb0l2f5.fsf@alter.siamese.dyndns.org>
On Wed, Feb 10, 2010 at 10:19:42PM -0800, Junio C Hamano wrote:
Show 42 quoted lines
> Johannes Schindelin <Johannes.Schindelin@gmx.de> writes:
> 
> > On Wed, 10 Feb 2010, Junio C Hamano wrote:
> >
> >> Johannes Schindelin <Johannes.Schindelin@gmx.de> writes:
> >> 
> >> > Yes. Note, though, that the problems of enhancing git-submodule are 
> >> > not technical, as we can learn from the recent history, including the 
> >> > lack of support for rebasing submodules (there _were_ patches!).
> >> 
> >> Sorry I don't recall.  Were they of 'next' quality?  How well were they 
> >> reviewed?
> >
> > Obviously not, otherwise you would have applied them, no?
> >
> > OTOH I found the technical details rather trivial, so maybe they were 
> > 'next' quality, but there was another reason you did not apply them.
> 
> Well, I spent some time digging the mail archive myself.  I think you were
> talking about this thread:
> 
>     http://thread.gmane.org/gmane.comp.version-control.git/116918
> 
> If this is not the thread you were talking about, please discard/disregard
> the remainder of this message, and give me a better pointer instead.
> 
> The thread ends with you asking me:
> 
>     Junio, how about it? post 1.6.3 or not?  It is a well contained change, 
>     with little chance of breaking something, but offers a more sensible 
>     workflow here.
> 
> and I said:
> 
>     I am afraid it is a bit too late for "improvements" after -rc1.
>     People survived without the new feature until now, and they can wait a
>     bit longer for the next one....
> 
> Obviously, after that nothing happened.  We have some people who send
> reminders for good topics after the original thread died without producing
> a visible result.  I'd ask you to do the same (when you can---as everybody
> else, you don't work full time on git; neither do I).
[...]
> To restart the discussion so that we can have it (if it is a good change)
> after 1.7.0 ships, here is a pointer to the last revision of the patch.
> 
>     http://article.gmane.org/gmane.comp.version-control.git/117394/raw

Thanks for CCing me, I'm not on the list at the moment. FWIW, Johannes pinged me about this patch a few weeks after that, but after revisiting it a few times I found some issues with it. Here's the email I sent to Johannes on April 24, my apologies that this was a private email only and did not reach the list.

"Sorry about the delay again, I've been a bit busy lately. I've thought about it a bit more and tbh. I don't think this patch - even if rebased - should be merged.

The original idea was that a module can be marked for auto-rebasing in .gitmodules. The issue with that is that AFAIK git submodule does not store branch info. So such auto-rebasing would only work provided it would be on the master branch. Anything else would require a fancier script than my patch including specifying which branch should be checked out in the original clone.

Right now, I don't have the time to design such a patch and I'm not even sure how much it is needed. With git submodule foreach it's relatively simple to just do the auto-rebase setting for all modules and I would not be surprised if the majority of use-cases require auto-rebasing on all modules anyway.

Does that make sense? "

So in this particular case the patchset was withdrawn by me for technical reasons (and the lack of time to sort out the details). It should have communicated better - again, my apologies for that.

Cheers,
  Peter
Previous: Junio C Hamano
Message 8 of 8 in “[RFC] submodule+shallow clone feature request”
  1. Schuyler DuveenFeb 10, 2010
  2. Avery PennarunFeb 10, 2010
  3. Junio C HamanoFeb 10, 2010
  4. Johannes SchindelinFeb 10, 2010
  5. Junio C HamanoFeb 10, 2010
  6. Johannes SchindelinFeb 10, 2010
  7. Re* [RFC] submodule+shallow clone feature requestJunio C Hamano, Feb 11, 2010
  8. Peter HuttererFeb 11, 2010

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.