Re: Subversion-style incrementing revision numbers
- From
Shawn Pearce <spearce@spearce.org>
- Date
- Sep 19, 2006, 22:18 UTC
- Message-ID
- <20060919221857.GB11601@spearce.org>
- In-Reply-To
- <eeppkl$rm9$2@sea.gmane.org>
Jakub Narebski <jnareb@gmail.com> wrote:
> Unfortunately, one cannot (as of now) use result of git-describe as > <commit-ish>. I'd rather have it fixed, than port idea from _centralized_ > SCM do distributed SCM.
This doesn't work?
git log $(git describe | cut -d- -f2 | sed 's/^g//')
Its obviously so clear and easy to type! :-)
That should be pretty easy to teach sha1_name.c:get_sha1_basic to look for the pattern commonly used by git-describe, break on "-g", verify the tag, then unabbreviate the ID.
-- Shawn.