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

Re: How to add custom metadata to Git commit object

From
Junio C Hamano <gitster@pobox.com>
Date
May 31, 2016, 15:25 UTC
Message-ID
<xmqq4m9e6yhz.fsf@gitster.mtv.corp.google.com>
In-Reply-To
<A5ADADA5-B772-488E-8FAD-20FCB68E5933@jetbrains.com>
Kirill Likhodedov <kirill.likhodedov@jetbrains.com> writes:
> Just out of curiosity, is it possible to add a custom invisible header 
> to commit object with some Git command? 
> git commit or commit-tree don’t have an option for this.

There isn't, and that is very much deliberate. We do not want to make it easy for people to even experiment with such "custom" headers; we want to encourage people to find solutions to whatever problem they are trying to solve that does not involve touching the object header.

Previous: Kirill Likhodedov
Message 6 of 6 in “How to add custom metadata to Git commit object”
  1. Kirill LikhodedovMay 30, 2016
  2. Konstantin KhomoutovMay 30, 2016
  3. Jeff KingMay 30, 2016
  4. Junio C HamanoMay 30, 2016
  5. Kirill LikhodedovMay 31, 2016
  6. Junio C HamanoMay 31, 2016

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.