[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: git-version-gen
From: |
Jim Meyering |
Subject: |
Re: git-version-gen |
Date: |
Mon, 03 Jan 2011 09:17:30 +0100 |
Jim Meyering wrote:
> Simon Josefsson wrote:
>> Probably a silly question, but when I use this script to produce
>> intra-version numbers, how do I make it produce non-intra-version
>> numbers? For example when I like to do a release?
>
> Run git tag -s ... to tag for the release.
I should have said a little more.
Given a most recent, reachable tag of "M.N", git-version-gen
is a lot like "git describe" in that it prints either:
- "M.N" when M.N refers to the head
- "M.N.Z-hhhhh" when there have been Z (0 < Z) commits since M.N