[FFmpeg-devel] [PATCH] Use git describe in version.sh

Luca Barbato lu_zero
Mon Dec 27 19:21:03 CET 2010

On 12/15/2010 03:45 AM, Ramiro Polla wrote:
> Hi,
> Attached patch makes version.sh use git describe for version string.
> Currently it will give the same result, since we have no tags in the
> git tree.
> And this brings another issue: I'd like for FFmpeg to still have some
> sort of monotonically increasing revision number when we switch to
> git. If we add tags to the tree, we'll get better version strings like
> "versionX-3-g9c2d982", where versionX is the tag name, 3 is the number
> of commits since the tag, and g9c2d982 the short git hash. We have to
> decide on what to tag though, since the releases are tagged after
> branching.

I'd like that number being the date stamp from the commit, since it has
a better meaning than other counters and possibly keep it apart from the
version reference, I know that isn't that compact but would be an
improvement. r12345 is perfectly meaningless to me

Even better would be:

FFmpeg version v0.6.2-123-b68fb1 , Copyright (c) 2000-2010 the FFmpeg
  built on Dec 18 2010 02:44:41 with gcc 4.4.4
  from "Improve snow quality" Mon Jun 14 11:26:18 2010



Luca Barbato

More information about the ffmpeg-devel mailing list