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