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

Re: [RFC] Referring to a submodule state recorded in a supermodule from within the submodule

From
Johan Herland <johan@herland.net>
Date
Nov 5, 2008, 18:09 UTC
Message-ID
<200811051909.51970.johan@herland.net>
In-Reply-To
<7vhc6mkqxb.fsf@gitster.siamese.dyndns.org>
On Wednesday 05 November 2008, Junio C Hamano wrote:
Show 22 quoted lines
> Johan Herland <johan@herland.net> writes:
> > I have a stand-alone project, "foo", that I work on myself. The
> > "foo" project is included as a submodule in two other projects,
> > "bar" and "baz", that I don't have any direct affiliation with.
> >
> > Semi-regularly, I like to keep tabs on bar and baz, to see what
> > versions of foo they are using, what changes they have made to foo,
> > and if there are things I could pick up from them, or maybe even
> > things they could learn from eachother.
> >
> > Doing this currently is quite tedious:
> > 1. Clone/Fetch bar and initialize/update its foo submodule
> > 2. Clone/Fetch baz and initialize/update its foo submodule
>
> If I am reading you right and you are only interested in the part
> "foo" in these projects, there is something wrong with the setup of
> "bar" and "baz".
>
> The submodule mechanism is designed to bind an independent project on
> its own as a subdirectory of another project.  It seems to me that
> the problem is that "bar" and "baz" projects do not give direct
> access to clone "foo" part of them for you or other people.

No, they do. I can clone foo directly from bar/baz's server. The problem is that I cannot quickly get at which revision of foo is used by bar/baz without tedious cloning and interacting with the superrepos.

I basically want to quickly answer questions like "What are the differences between bar's foo and baz's foo (and my own foo)?"

...Johan
-- 
Johan Herland, <johan@herland.net>
www.herland.net
Previous: Junio C HamanoNext: Daniel Barkalow
Message 3 of 4 in “[RFC] Referring to a submodule state recorded in a supermodule from within the submodule”
  1. Johan HerlandNov 5, 2008
  2. Junio C HamanoNov 5, 2008
  3. Johan HerlandNov 5, 2008
  4. Daniel BarkalowNov 5, 2008

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.