The decoration span does not need to be emited if there aren't
any decorations to show. This modification saves slightly
on bandwidth.
Signed-off-by: Tim Nordell <tim.nordell@logicpd.com>
buf[sizeof(buf) - 1] = 0;
deco = get_name_decoration(&commit->object);
buf[sizeof(buf) - 1] = 0;
deco = get_name_decoration(&commit->object);
html("<span class='decoration'>");
while (deco) {
if (starts_with(deco->name, "refs/heads/")) {
html("<span class='decoration'>");
while (deco) {
if (starts_with(deco->name, "refs/heads/")) {