Access git version info as a filter
-
{{ "Branch is " | gitBranch }}
-> Branch is master -
{{ "Tag is " | gitTag }}
-> Tag is foo -
{{ "Short hash is " | gitShort }}
-> Short hash is 30f47b0 -
{{ "Long hash is " | gitLong }}
-> Long hash is 30f47b0f030c21bbf8129246f0f2e42e3e4f8576