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

[RFC] Support for arbitrary tags in commits

From
PMPhilipp Marek <philipp@marek.priv.at>
Date
Jan 11, 2011, 12:23 UTC
Message-ID
<74b0628dffbd2bc0adabe5e8b0a10960.squirrel@webmail.hitco.org>
Hello everybody,
I'd like to attach some additional data to commits.

The best way I've found (so far) is to put an additional header line in the commit header that references an additional blob.

Currently I've found "tree", "parent", "author", "committer", and so on; git accepts additional lines before the "\n\n" separator (and the commit message), so that's where I'd like to put the line.

"git fsck" allows that, too; only "rebase -i" and similar don't know about them (yet), and discard them.

Now I want to ask:
 * Is this acceptable?
 * If yes, I'd try to provide a patch to make "amend" and similar keep the
   header-lines (by collecting them in order - obviously with editing commits
   a header could exist multiple times).
 * Perhaps there should be an option for "git-commit" that inserts arbitrary
   header lines?
 * Is there some documentation for the commit-file format so that this can be
   written down?
 * How should namespace-issues be handled?
   I can imagine that multiple people want to put data there, how should the
   tag be allocated?
   This could be solved by the previous point, ie. there's some page that
   header tags should be registered at to avoid collisions.
Thank you for all feedback.
Regards,
Phil
-- 
Versioning your /etc, /home or even your whole installation?
             Try fsvs (fsvs.tigris.org)!
Next: Thomas Rast
Message 1 of 4 in “[RFC] Support for arbitrary tags in commits”
  1. Philipp MarekJan 11, 2011
  2. Thomas RastJan 11, 2011
  3. Philipp MarekJan 11, 2011
  4. Thomas RastJan 11, 2011

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.