mirror of
https://github.com/libretro/libretro-super
synced 2024-11-28 20:14:22 +00:00
Add a function to spit out latest git hash
This commit is contained in:
parent
7ea3faaeb6
commit
84e8a9294a
@ -26,3 +26,9 @@ fetch_git() {
|
||||
fi
|
||||
}
|
||||
|
||||
# revision_git <local directory>
|
||||
# Output the hash of the last commit in a git repository
|
||||
revision_git() {
|
||||
git -C "$WORKDIR/$1" log -n 1 --pretty=format:%H
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user