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

Re: Feature request: add a metadata in the commit: the "commited in branch" information

From
Junio C Hamano <gitster@pobox.com>
Date
Dec 29, 2019, 23:17 UTC
Message-ID
<xmqqd0c6iuw0.fsf@gitster-ct.c.googlers.com>
In-Reply-To
<CAEW0o+jV+r1UMZReRXa3g_fyqCYxHTVYVf6pWvjB7_isofbBaw@mail.gmail.com>
Arnaud Bertrand <xda@abalgo.com> writes:
> I understood that in git philosophy, once it is merged, a branch can
> disappear. But for a lot of companies, a SCM is also a guardian of the
> history.

A lot more important point than "once it is merged" is that the branch identity is strictly local to your repository. Contaminating the object header, which is cast in stone and cannot be modified after the fact, with such a piece of information will not mix well with the rest of Git, so ...

Previous: Arnaud BertrandNext: Arnaud Bertrand
Message 2 of 6 in “Feature request: add a metadata in the commit: the "commited in branch" information”
  1. Arnaud BertrandDec 23, 2019
  2. Junio C HamanoDec 29, 2019
  3. Arnaud BertrandDec 29, 2019
  4. Theodore Y. Ts'oDec 30, 2019
  5. Arnaud BertrandDec 30, 2019
  6. Paul SmithDec 30, 2019

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.