[x264-devel] [PATCH] Hack for svnversion equivalent on git
Loren Merritt
lorenm at u.washington.edu
Tue Mar 4 01:35:53 CET 2008
On Mon, 3 Mar 2008, Jason Martens wrote:
> VER=`git-rev-list HEAD | wc | awk '{print substr($1,0,3)}'`
wc -l
> Quick hack so 'svn-VER' still works for git.
An ideal script would:
Still work with svn (I don't think people will stop using the svn mirror
soon).
Count the number of revisions shared between the local tree and upstream
(local commits don't increment the version number, nor do upstream commits
that haven't been fetched).
Check wether there are local commits or non-committed modifications.
Add part of the hash just to be sure.
--Loren Merritt
More information about the x264-devel
mailing list