[x264-devel] [PATCH] Hack for svnversion equivalent on git

Jason Martens cacepi at gmail.com
Fri Mar 7 18:47:33 CET 2008


On Mar 7, 2008, at 11:33 AM, Pierre d'Herbemont wrote:

> You only have to tag one commit to have git describe working, not
> all... That's seem to be a bit much ;)

Remember, it's a hack for an svnversion equivalent; most people refer  
to a build of x264 by the number that svnversion reports.  If you tag  
only one commit, versioning for higher commits breaks down.

For example:

git-tag -m "git-746" git-746 233a760dc99fe8a6cc401b711ffb3a3c90f8a5fa

But build from the current HEAD, which svnversion would report as 748:

#define X264_VERSION "git-746-2-g397d1bf"
#define X264_POINTVER "0.58.git-746-2-g397d1bf"

As it stands now, the patch provides everything that svnversion does  
with the exception of mixed revisions, which apparently aren't  
supported in git.

--
Cheers,

Jason Martens
cacepi at gmail.com


More information about the x264-devel mailing list