{% import "git.gabrielgio.me/cerrado/pkg/git" %} {% import "git.gabrielgio.me/cerrado/pkg/humanize" %} {% func Commit(name string, c *git.CommitReference, showTar bool) %}
{%s c.Commit().Hash.String()[0:8] %}{%s c.Commit().Author.Name %} {% if c.HasReference() %} — {% for _, r := range c.References() %} {% if r.Name().IsBranch() %} {%s r.Name().Short() %} {% else %} {%s r.Name().Short() %} {% endif %} {% endfor %} {%endif%}
{% if showTar %} {% endif %}
{%s c.Commit().Message %}
{% endfunc %}