11-22-2013, 03:44 AM
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-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]

