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

git pull a subtree, embedded trees

From
TSTim Shimmin <tes@sgi.com>
Date
Sep 13, 2006, 13:05 UTC
Message-ID
<4508020F.2050604@sgi.com>
Hi,
I'm new to git and have a couple of novice questions.
* Is it possible to only pull in a subtree from
a repository.
Moreover, is it possible to have a subtree based on another
repository.
For example, have a topdir directory with subdirs,
s1, s2, s3 and s4. And then have say, s2 linked to
a repository rs2 and s3 linked to rs3, so that
one can update s2 and s3 from these other repositories but
having the rest of the tree linked from a main repository.
* Are there any tools for dumping out the contents of the
git objects in the .git/objects directory.
By dumping out, I mean an ascii representation of the data
fields for the commit and tree objects in particular.
I've written a simple small program to dump out the index
entries (cache entries).
I just want to see what is exactly stored in the .git
binary files and how they change when I do various git
operations.
Thanks a bunch.
--Tim
Next: Jakub Narebski
Message 1 of 8 in “git pull a subtree, embedded trees”
  1. Tim ShimminSep 13, 2006
  2. Jakub NarebskiSep 13, 2006
  3. Timothy ShimminSep 18, 2006
  4. Jakub NarebskiSep 18, 2006
  5. Shawn PearceSep 18, 2006
  6. Shawn PearceSep 18, 2006
  7. Shawn PearceSep 13, 2006
  8. Timothy ShimminSep 18, 2006

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.