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

Re: git subtree: an alternative to git submodule

From
Avery Pennarun <apenwarr@gmail.com>
Date
May 18, 2009, 16:38 UTC
Message-ID
<32541b130905180938v5dd5283g6b75ffb7e76f3280@mail.gmail.com>
In-Reply-To
<46dff0320905180855m3e1bd74esb564af0fbcf4b1ff@mail.gmail.com>
On Mon, May 18, 2009 at 11:55 AM, Ping Yin <pkufranky@gmail.com> wrote:
Show 8 quoted lines
> It's really a cool feature, but i havn't tried it. Why?
>
> It will spends me some time saving and applying the patches and then
> testing it (i don't have the appropriate environment setuped). But I
> am busy and there is no urgent need to use this feature ( it is only a
> rare case for me).  So i will wait until i need the feature or there
> is an easy to fetch the code ( pu of official reposotory or other
> repository with these patches applied).

Excellent, thanks for the feedback. In fact you can git clone the code from here:

  git clone git://github.com/apenwarr/git-subtree.git
(It's not a copy of the git repo; it's a tiny standalone repo.)

The important file is 'git-subtree'. Copy this anywhere on your PATH, and magically the 'git subtree' command will work.

I admit that your next roadblock will probably be lack of documentation, though, as Junio points out.

Have fun,
Avery
Previous: Ping YinNext: Ping Yin
Message 9 of 11 in “git subtree: an alternative to git submodule”
  1. 0/2 git subtree: an alternative to git submoduleAvery Pennarun, May 8, 2009
  2. 1/2 Add 'git subtree' command for tracking history of subtrees separately.Avery Pennarun, May 8, 2009
  3. 2/2 Automated test script for 'git subtree'.Avery Pennarun, May 8, 2009
  4. Avery PennarunMay 15, 2009
  5. Junio C HamanoMay 15, 2009
  6. Avery PennarunMay 15, 2009
  7. Ping YinMay 18, 2009
  8. Ping YinMay 18, 2009
  9. Avery PennarunMay 18, 2009
  10. Ping YinMay 19, 2009
  11. Jakub NarebskiMay 19, 2009

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.