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

Re: [PATCHv2] Documentation/git-submodule.txt: Add Description section

From
KNKalle Olavi Niemitalo <kon@iki.fi>
Date
Jul 16, 2008, 19:15 UTC
Message-ID
<87d4ldvdwx.fsf@Astalo.kon.iki.fi>
In-Reply-To
<20080716184248.6524.38463.stgit@localhost>
Petr Baudis <pasky@suse.cz> writes:
Show 5 quoted lines
> +Submodules are a special kind of tree entries which refer to a particular tree
> +in another repository (living at a given URL).  The tree entry describes
> +the existence of a submodule with the given name and the exact revision that
> +should be used, while the location of the repository is described in the
> +`/.gitmodules` file.

I was surprised to learn that a commit ID in a tree does not prevent Git from pruning the corresponding commit object if one happens to exist in the same repository. That might be best documented under "Tree Object" in user-manual.txt though, rather than in git-submodule.txt.

Previous: Petr BaudisNext: Junio C Hamano
Message 5 of 13 in “Documentation/git-submodule.txt: Add Description section”
  1. Documentation/git-submodule.txt: Add Description sectionPetr Baudis, Jul 15, 2008
  2. Junio C HamanoJul 15, 2008
  3. Heikki OrsilaJul 15, 2008
  4. [PATCHv2] Documentation/git-submodule.txt: Add Description sectionPetr Baudis, Jul 16, 2008
  5. Kalle Olavi NiemitaloJul 16, 2008
  6. Junio C HamanoJul 16, 2008
  7. Heikki OrsilaJul 17, 2008
  8. Petr BaudisJul 17, 2008
  9. Documentation/git-submodule.txt: Further clarify the descriptionPetr Baudis, Jul 17, 2008
  10. Heikki OrsilaJul 17, 2008
  11. Junio C HamanoJul 17, 2008
  12. Petr BaudisJul 18, 2008
  13. Documentation/git-submodule.txt: Further clarify the descriptionPetr Baudis, Jul 18, 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.