Added tag name function.

This commit is contained in:
flash 2018-09-24 23:20:02 +02:00
parent 0ef2dc898b
commit 5f1e354e91

View file

@ -22,3 +22,8 @@ function git_branch(): string
{
return trim(shell_exec('git rev-parse --abbrev-ref HEAD'));
}
function git_tag(): string
{
return trim(shell_exec('git describe --abbrev=0 --tags'));
}