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

Jason Martens cacepi at gmail.com
Sun Mar 9 06:39:04 CET 2008


On Mar 8, 2008, at 6:50 AM, Pierre d'Herbemont wrote:

> Note that you get git-746-2, which means 2 commits after 746.

But that 2 will increment with each commit regardless of where it's  
made.  It tells you nothing important _about_ the commits.  Are they  
local commits?  Are they already in the HEAD at git.videolan.org?  You  
don't know; all you know is that there have been commits on top of  
that tag.  You can't trust the commit_id because git-describe shows  
its commit_id from master, not HEAD.  So you have to compare hashes.

Why force someone to go through that extra step?  With every commit  
tagged you don't have to guess; you know it's a local commit.

> I really think that's overkill to tag every single commit. You'll have
> to change a bit how downstream work,

    Yet again, _svnversion equivalent_.  This is how downstream worked  
the whole time x264 was on svn:  X264_VERSION reflected the number of  
commits made to svn.videolan.org.  How do you do that reliably in git  
without tagging each commit or mangling git-rev-list?

--
Jason Martens
cacepi at gmail.com



More information about the x264-devel mailing list