X-Git-Url: https://gitweb.ps.run/ps-cgit/blobdiff_plain/c366bd6fa88fb7dbe1e42c84d56e2bda0b1682c5..c1633c6:/ui-shared.c diff --git a/ui-shared.c b/ui-shared.c index d9d5da7..c4fb437 100644 --- a/ui-shared.c +++ b/ui-shared.c @@ -361,7 +361,10 @@ void cgit_commit_link(char *name, const char *title, const char *class, delim = "&"; } html("'>"); - html_txt(name); + if (name[0] != '\0') + html_txt(name); + else + html_txt("(no commit message)"); html(""); } @@ -561,6 +564,7 @@ void cgit_submodule_link(const char *class, char *path, const char *rev) html("'>"); html_txt(path); html(""); + html_txt(fmt(" @ %.7s", rev)); if (item && tail) path[len - 1] = tail; }