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

Re: Extra metadata in the commit?

From
Johan Herland <johan@herland.net>
Date
Apr 25, 2009, 12:08 UTC
Message-ID
<200904251408.22410.johan@herland.net>
In-Reply-To
<alpine.DEB.1.00.0904250154080.10279@pacific.mpi-cbg.de>
On Saturday 25 April 2009, Johannes Schindelin wrote:
Show 7 quoted lines
> On Fri, 24 Apr 2009, Scott Chacon wrote:
> > So, I can keep this data in the commit message, but I thought it
> > would be cleaner to keep it as extra fields in the commit object before
> > the "\n\n" separator.
>
> I'd suggest keeping it in the commit body, for better visibility and
> easier handling by tools.

Or even better: Keep it in separate commit notes (provided you can wait for the js/notes topic in pu to make it into a release). If you add the notes with GIT_NOTES_REF=refs/notes/hg_metadata, you will also keep them nicely out of the way of everybody else.

(I'm using this approach when building a bidirectional CVS <-> Git helper on top of Barkalow's foreign-scm topic).

Have fun! :)
...Johan
-- 
Johan Herland, <johan@herland.net>
www.herland.net
Previous: Alex Riesen
Message 5 of 5 in “Extra metadata in the commit?”
  1. Scott ChaconApr 24, 2009
  2. Junio C HamanoApr 24, 2009
  3. Johannes SchindelinApr 24, 2009
  4. Alex RiesenApr 25, 2009
  5. Johan HerlandApr 25, 2009

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.