]> granicus.if.org Git - cgit/commitdiff
Print submodule revision next to submodule link
authorstfn <stfnmd@gmail.com>
Wed, 27 Feb 2013 18:47:17 +0000 (19:47 +0100)
committerJason A. Donenfeld <Jason@zx2c4.com>
Sat, 2 Mar 2013 15:26:28 +0000 (10:26 -0500)
ui-shared.c

index 75b97a1ec7b8f5c98701a35431871800ccfb45cb..c4fb437e910bfca267019a057acf4ae9c2c9696b 100644 (file)
@@ -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;
 }