Print submodule revision next to submodule link

This commit is contained in:
stfn 2013-02-27 19:47:17 +01:00 committed by Jason A. Donenfeld
parent 05da4c2822
commit c0a92e82da

View File

@ -564,6 +564,7 @@ void cgit_submodule_link(const char *class, char *path, const char *rev)
html("'>"); html("'>");
html_txt(path); html_txt(path);
html("</a>"); html("</a>");
html_txt(fmt(" @ %.7s", rev));
if (item && tail) if (item && tail)
path[len - 1] = tail; path[len - 1] = tail;
} }