Added tag name function.
This commit is contained in:
parent
0ef2dc898b
commit
5f1e354e91
1 changed files with 5 additions and 0 deletions
|
@ -22,3 +22,8 @@ function git_branch(): string
|
||||||
{
|
{
|
||||||
return trim(shell_exec('git rev-parse --abbrev-ref HEAD'));
|
return trim(shell_exec('git rev-parse --abbrev-ref HEAD'));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
function git_tag(): string
|
||||||
|
{
|
||||||
|
return trim(shell_exec('git describe --abbrev=0 --tags'));
|
||||||
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue