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

Re: Git submodule for a local branch?

From
W. Trevor King <wking@tremily.us>
Date
Oct 23, 2012, 13:21 UTC
Message-ID
<20121023132111.GA26134@odin.tremily.us>
In-Reply-To
<20121022123714.GL25563@odin.tremily.us>
On Mon, Oct 22, 2012 at 08:37:14AM -0400, W. Trevor King wrote:
> but cloning a remote repository (vs. checking out a local branch)
> seems to be baked into the submodule implementation.

Perhaps --local would set submodule.$name.url to '.', and ome combination of GIT_WORK_TREE, GIT_DIR, and object references could be used to setup and manage the local submodule.

-- 
This email may be signed or encrypted with GnuPG (http://www.gnupg.org).
For more information, see http://en.wikipedia.org/wiki/Pretty_Good_Privacy
Previous: W. Trevor KingNext: Jens Lehmann
Message 2 of 4 in “Git submodule for a local branch?”
  1. W. Trevor KingOct 22, 2012
  2. W. Trevor KingOct 23, 2012
  3. Jens LehmannOct 23, 2012
  4. W. Trevor KingOct 23, 2012

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.