Andrey Borzenkov (arvidjaar@gmail.com) wrote:
В Tue, 10 Sep 2013 13:20:51 +0100 Adam Spiers <aspiers@suse.com> пишет:
Andreas Schwab (schwab@suse.de) wrote:
For git you can also use the output from git describe, which is also monotonically increasing.
I'm pretty sure that's not correct. Did you test it? I think it depends on what tags the repo contains (if any), and which git describe options are being used.
Well ... if version V has commit V_C, then
V-$(git rev-list --oneline --count V_C..HEAD)-g$(git log -n 1 --format=%h HEAD)
should give the same result but without relying on tags, should not it?
Yes, but where does V_C come from, and what would the corresponding _service file look like? This would reduce the version string by 5 or 6 bytes at best, but OTOH it would lose the convenience of being able to glance at an rpm version and immediately be able to tell how many days old the contained source was. That's something I find useful several times a week with the %ct scheme. -- To unsubscribe, e-mail: opensuse-packaging+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-packaging+owner@opensuse.org