Log in

View Full Version : Mapping from x264 git commit tags to r### tags


PhilR
8th September 2008, 22:39
I see a lot of forum discussions (and even git release tags) referring to x264 released by SVN-style r numbers. I know that the release number stuck around because the git identifiers aren't very user friendly, I'm just wondering where to find the mapping.

I've tried poking around a bit at http://git.videolan.org/gitweb.cgi?p=x264.git;a=summary. I've also looked at the git logs and x264-devel archive.

Dark Shikari
8th September 2008, 22:41
When you run ./configure it'll automatically calculate the version number of the current revision.

J_Darnley
8th September 2008, 22:41
In the source for x264, you can find it in version.sh. If you want to review it on the web: http://git.videolan.org/gitweb.cgi?p=x264.git;a=blob;f=version.sh;h=37b9908fa9ccae005135c84684de9e6647b7ee64;hb=HEAD

akupenguin
8th September 2008, 23:35
~/bin/git-log:
git log "$@" | perl -e '$/="\ncommit"; $i=@t=<>; for(@t){s/(\S{8})\S{32}\n/$1 r$i\n/m; $i--; s# \s+git-svn-id: svn://.*\n##; print}' | less

PhilR
9th September 2008, 01:02
Thanks, all of you. That perl snippet was particularly helpful.