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

Storing (hidden) per-commit metadata

From
Jelmer Vernooij <jelmer@samba.org>
Date
Feb 19, 2010, 17:11 UTC
Message-ID
<1266599485.29753.54.camel@ganieda>

To allow round-tripping pushes from Bazaar into Git, I'm looking for a good place to store Bazaar semantics that can not be represented in Git at the moment. This data should ideally be hidden from the user as much as possible; it would e.g. contain mappings from git hashes to Bazaar ids.

One option would be to store it (as hg-git does) at the bottom of each git commit message. However, given the amount of data and the its kind, it would be annoying to have it displayed by e.g. "git show" or "git log".

Some people have suggested I use the new git notes to store this metadata, but I haven't quite figured out how to add notes that aren't displayed by git log/show and are still propagated along with the revision. Is that at all possible using notes, and are they the right thing to use here?

There also doesn't appear to be any documentation on notes in Documentation/technical at the moment. I'm happy to contribute some if somebody can provide pointers.

Cheers,
Jelmer
Next: Ben Gamari
Message 1 of 19 in “Storing (hidden) per-commit metadata”
  1. Jelmer VernooijFeb 19, 2010
  2. Ben GamariFeb 20, 2010
  3. Avery PennarunFeb 20, 2010
  4. Jeff KingFeb 21, 2010
  5. Johannes SchindelinFeb 21, 2010
  6. Jeff KingFeb 21, 2010
  7. Jelmer VernooijFeb 21, 2010
  8. Dmitry PotapovFeb 22, 2010
  9. Jelmer VernooijFeb 22, 2010
  10. Dmitry PotapovFeb 22, 2010
  11. Jelmer VernooijFeb 22, 2010
  12. Dmitry PotapovFeb 22, 2010
  13. Jelmer VernooijFeb 22, 2010
  14. Dmitry PotapovFeb 22, 2010
  15. Jelmer VernooijFeb 22, 2010
  16. Jelmer VernooijFeb 22, 2010
  17. Gabriel FilionFeb 22, 2010
  18. Jelmer VernooijFeb 22, 2010
  19. Alejandro R. SedeñoFeb 22, 2010

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.