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

Re: [PATCH] guilt: add git commit level versioning

From
JSJosef 'Jeff' Sipek <jeffpc@josefsipek.net>
Date
Oct 9, 2008, 15:54 UTC
Message-ID
<20081009155445.GF27647@josefsipek.net>
In-Reply-To
<1223431722-12259-1-git-send-email-paul.gortmaker@windriver.com>
On Tue, Oct 07, 2008 at 10:08:42PM -0400, Paul Gortmaker wrote:
Show 8 quoted lines
> Shamelessly steal the dynamic versioning goodies from git
> itself.  Now when you do "guilt --version" you can expect to
> see things like:
> 
> 	Guilt version 0.31.2.14.gece1.dirty
> 
> assuming you've 14 commits since 0.31.2 and also some changes
> that you've not committed yet.

Good idea. I've been pondering how to do this a while back, but never got around to actually do it.

One comment: Why not keep the default version in guilt? You're running sed
on it anyway.  This makes releasing identical to what it was before the
patch:
	<edit guilt to reflect new version, commit>
	git tag -u abcdef v0.xy
	git archive --tar v0.xy | gzip -9 > guilt-0.xy.tar.gz

Additionally, things won't "break" for folks running right out of the git repo - I just add the git repo dir to my $PATH.

Josef 'Jeff' Sipek.
-- 
Keyboard not found!
Press F1 to enter Setup
Previous: Paul GortmakerNext: Paul Gortmaker
Message 2 of 3 in “guilt: add git commit level versioning”
  1. guilt: add git commit level versioningPaul Gortmaker, Oct 8, 2008
  2. Josef 'Jeff' SipekOct 9, 2008
  3. Paul GortmakerOct 9, 2008

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.