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

Re: Proposal: Write git subtree info to .git/config

From
Junio C Hamano <gitster@pobox.com>
Date
Mar 13, 2014, 23:36 UTC
Message-ID
<xmqqmwgthdsp.fsf@gitster.dls.corp.google.com>
In-Reply-To
<CAJ2ZDL+HuBCv_xJCXEBb3Pex-qt86ocEX9yu=uV+CzdvqwECDA@mail.gmail.com>
John Butterfield <johnb003@gmail.com> writes:
> Has there been any talk about adding a stub for git subtrees in .git/config?
I do not think so, and that is probably for a good reason.

A subtree biding can change over time, but .git/config is about recording information that do not change depending on what tree you are looking at, so there is an impedance mismatch---storing that information in .git/config is probably a wrong way to go about it.

It might help to keep track of "In this tree, the tip of that other history is bound as a subtree at this path", which means that information more naturally belongs to each tree, I would think.

Previous: John ButterfieldNext: John Butterfield
Message 2 of 4 in “Proposal: Write git subtree info to .git/config”
  1. John ButterfieldMar 13, 2014
  2. Junio C HamanoMar 13, 2014
  3. John ButterfieldMar 14, 2014
  4. John ButterfieldMar 14, 2014

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.