mirror of
https://github.com/wownero/wowlet.git
synced 2026-10-17 23:31:32 +02:00
14 lines
220 B
Bash
14 lines
220 B
Bash
#!/usr/bin/env bash
|
|
|
|
git_root() {
|
|
git rev-parse --show-toplevel 2> /dev/null
|
|
}
|
|
|
|
git_head_commit() {
|
|
git rev-parse --short=12 HEAD
|
|
}
|
|
|
|
git_head_tag() {
|
|
echo -n $(git describe --exact-match HEAD 2> /dev/null)
|
|
}
|