Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [git] regarding qualifiers...

2012/1/24 Eric Gwin <eric.gwin@xxxxxxxxxx>
Hi,

This is a question for all those who went before...

We are in the process of converting from SVN to Git. One major difference is that Git doesn't use revision numbers, and we had solved a potential issue with qualifiers by making use of them:

When the bundles are built, .qualifier is replaced by the actual qualifier usually .v<builddate><time> the issue is that if my code is four days old the bundles would still be built using the current system timestamp, so tracking nightly builds vs engineering bundles becomes an issue.

We opted to set the qualifier to .v<builddate>-r<svn revision>, so that we'd always be able to tie the build to the codebase. After the move we won't be able to. I could generate a tag for every build but I'd rather not deal with the overhead, I could ignore the issue (I'm certain it'll bite us eventually though), or I could try to stamp based on the date/time of last check-in.

I'm wondering what other teams have done, and if anyone more familiar with git can tell me if option 3 is even possible, and if so how it was accomplished.

If you want a qualifier describing the source version you may consider to use
git describe [1].  It allows to describe the distance from the last tag and to identify the 
built commit without tagging each built version.

[1] http://schacon.github.com/git/git-describe.html

--
Matthias

Back to the top