summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristian Hesse <mail@eworm.de>2018-06-04 22:27:46 +0200
committerChristian Hesse <mail@eworm.de>2018-06-04 22:28:57 +0200
commit123f044ceeac25ea8cd0dd766cb20b74005021fc (patch)
tree29aafc941768bd4162239e6d43ebb86ecf86993e
parent33414d7869aa55aaccd45cdb82268d454cb79863 (diff)
downloadcgit-ch/git-version.tar.gz
print git version string in footerch/git-version
-rw-r--r--ui-shared.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/ui-shared.c b/ui-shared.c
index 9d8f66b..c7d442d 100644
--- a/ui-shared.c
+++ b/ui-shared.c
@@ -10,6 +10,7 @@
#include "ui-shared.h"
#include "cmd.h"
#include "html.h"
+#include "version.h"
static const char cgit_doctype[] =
"<!DOCTYPE html>\n";
@@ -785,8 +786,8 @@ void cgit_print_docend(void)
if (ctx.cfg.footer)
html_include(ctx.cfg.footer);
else {
- htmlf("<div class='footer'>generated by <a href='https://git.zx2c4.com/cgit/about/'>cgit %s</a> at ",
- cgit_version);
+ htmlf("<div class='footer'>generated by <a href='https://git.zx2c4.com/cgit/about/'>cgit %s</a> (git %s) at ",
+ cgit_version, git_version_string);
html_txt(show_date(time(NULL), 0, cgit_date_mode(DATE_ISO8601)));
html("</div>\n");
}