All of lore.kernel.org
 help / color / mirror / Atom feed
From: Josef 'Jeff' Sipek <jeffpc@josefsipek.net>
To: Paul Gortmaker <paul.gortmaker@windriver.com>
Cc: git@vger.kernel.org
Subject: Re: [PATCH] guilt: add git commit level versioning
Date: Thu, 9 Oct 2008 11:54:45 -0400	[thread overview]
Message-ID: <20081009155445.GF27647@josefsipek.net> (raw)
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:
> 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

  reply	other threads:[~2008-10-09 15:55 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-10-08  2:08 [PATCH] guilt: add git commit level versioning Paul Gortmaker
2008-10-09 15:54 ` Josef 'Jeff' Sipek [this message]
2008-10-09 16:13   ` Paul Gortmaker

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20081009155445.GF27647@josefsipek.net \
    --to=jeffpc@josefsipek.net \
    --cc=git@vger.kernel.org \
    --cc=paul.gortmaker@windriver.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.