Post Reply 
 
Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
[Solved] how to find ppsspp git revision number on git server?
11-21-2013, 07:39 AM (This post was last modified: 11-22-2013 01:25 PM by fastrizwaan.)
Post: #1
[Solved] how to find ppsspp git revision number on git server?
I'm building RPM for fedora, I want to get the git version like v.0.9.5-XXXXXXX , when a commit happens and we do git fetch

When we compile ppsspp, we can see git-version.cpp, but how do I know the latest full revision number?

thanks.
Find all posts by this user
Quote this message in a reply
11-21-2013, 07:52 AM
Post: #2
RE: how to find ppsspp git revision number on git server?
This annoys me too. I generally just go to buildbot, find the version and click the link.

Alternatively if you have the hash (the part after 'g'), you can go here:

https://github.com/hrydgard/ppsspp/commits/*hash*

where you replace *hash* with the XXXXXXX (excluding the g)
Find all posts by this user
Quote this message in a reply
11-21-2013, 08:25 AM
Post: #3
RE: how to find ppsspp git revision number on git server?
I think we need to successfully compile then get the GIT VERSION from

ppsspp/git-version.cpp
Code:
cat ../ppsspp/git-version.cpp|grep \"|cut -f2 -d \"
will get us
v0.9.5-556-gcd6de79
Find all posts by this user
Quote this message in a reply
11-22-2013, 01:06 AM
Post: #4
RE: how to find ppsspp git revision number on git server?
it's just "git describe --always" at least that's what's used to generate the git-version.cpp
Find all posts by this user
Quote this message in a reply
11-22-2013, 03:44 AM
Post: #5
RE: how to find ppsspp git revision number on git server?
Henrik: open your .gitconfig file or etc. and add this under [alias]:

find-commit = "!START_POINT="`echo "$1" | sed -e 's/-.*$//'`"; git describe --always `git rev-list "$START_POINT"..master` | grep "$1-" && true"

Use e.g. "git find-commit v0.9.5-3". But it's still a pain and can be slow or ambiguous.

Another useful one:
get-merge = "!git log --ancestry-path $1..master --oneline --merges | tail -n1 && true"

Use e.g. "git get-merge c2b2b36" which will tell you it's pull #4417.

As for packaging, yes, just use git describe --always. I believe it has to be done from within the git directory.

-[Unknown]
Find all posts by this user
Quote this message in a reply
11-22-2013, 01:26 PM
Post: #6
RE: [Solved] how to find ppsspp git revision number on git server?
Thanks unknown and Bigpet! that helped a lot for making rpm.
Find all posts by this user
Quote this message in a reply
Post Reply 


Forum Jump: