[PATCH 1/1] print git version string in footer

Christian Hesse list at eworm.de
Tue Jun 5 16:46:22 CEST 2018


Christian Hesse <list at eworm.de> on Mon, 2018/06/04 22:29:
> From: Christian Hesse <mail at eworm.de>
> 
> Signed-off-by: Christian Hesse <mail at eworm.de>
> ---
>  ui-shared.c | 5 +++--
>  1 file 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");
>  	}


Do we want to link the git website https://git-scm.com/ ?
-- 
main(a){char*c=/*    Schoene Gruesse                         */"B?IJj;MEH"
"CX:;",b;for(a/*    Best regards             my address:    */=0;b=c[a++];)
putchar(b-1/(/*    Chris            cc -ox -xc - && ./x    */b/42*2-3)*42);}
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 488 bytes
Desc: OpenPGP digital signature
URL: <http://lists.zx2c4.com/pipermail/cgit/attachments/20180605/26a54eb7/attachment.asc>


More information about the CGit mailing list