Re: cvs revision number -> git commit name?
- From
Johan Herland <johan@herland.net>
- Date
- Jan 27, 2010, 22:19 UTC
- Message-ID
- <201001272319.30134.johan@herland.net>
- In-Reply-To
- <hbf.20100127jjbx@bombur.uio.no>
On Wednesday 27 January 2010, Hallvard B Furuseth wrote:
Show 11 quoted lines
> Johan Herland writes: > > You could consider adding the CVS revision numbers as notes (see "git > > help notes" in >= v1.6.6) to the corresponding commits. Then they don't > > pollute the commit messages, but instead live in a separate, but > > parallel hierarchy that can be easily pulled in when you need to > > reference them (e.g. GIT_NOTES_REF="refs/" git log). > > Thanks, looks better than munging the log. Though with one common > weakness - should likely omit noting mass commits, since they'd clutter > what 'git log' displays too much. Of course, either could used combined > with a mapping table.
Of course, you wouldn't put the cvs revision numbers on the default notes ref ("refs/notes/commits"). You would rather put them on a _different_ notes refs (e.g. "refs/notes/cvs"), where they would not clutter you "git log", and then when you _need_ to look at them, you simply run:
GIT_NOTES_REF=refs/notes/cvs git log
...Johan
-- Johan Herland, <johan@herland.net> www.herland.net