aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorstfn <stfnmd@gmail.com>2013-02-27 18:47:17 +0000
committerJason A. Donenfeld <Jason@zx2c4.com>2013-03-02 15:26:28 +0000
commitc0a92e82da3063efc230538ba109ff95aa59589a (patch)
tree993b7a32fd45f121d92f68ebeb5f140482a56167
parent05da4c2822f60649786c0dd81f01a3855846248f (diff)
downloadcgit-c0a92e82da3063efc230538ba109ff95aa59589a.tar
cgit-c0a92e82da3063efc230538ba109ff95aa59589a.tar.gz
cgit-c0a92e82da3063efc230538ba109ff95aa59589a.zip
Print submodule revision next to submodule link
-rw-r--r--ui-shared.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/ui-shared.c b/ui-shared.c
index 75b97a1..c4fb437 100644
--- a/ui-shared.c
+++ b/ui-shared.c
@@ -564,6 +564,7 @@ void cgit_submodule_link(const char *class, char *path, const char *rev)
html("'>");
html_txt(path);
html("</a>");
+ html_txt(fmt(" @ %.7s", rev));
if (item && tail)
path[len - 1] = tail;
}