From f7d2b838e9c37b96d705b631750fd1629ef1dab1 Mon Sep 17 00:00:00 2001 From: Bryce Kwon Date: Thu, 22 Oct 2026 22:58:51 -1000 Subject: Sign patches with the cgit version git format-patch ends each patch with the version of git that wrote it, and the bare "cgit" that 872bd7c left in its place said less. The version is written as git writes its own, without the v of the tag, so a release build signs with "cgit 2.9.0". The footer and the generator tag still leave versions out. --- source/cgit.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'source/cgit.c') diff --git a/source/cgit.c b/source/cgit.c index 5f8ecfa..a877e92 100644 --- a/source/cgit.c +++ b/source/cgit.c @@ -54,6 +54,8 @@ struct refmatch { int found; }; +const char *cgit_version = CGIT_VERSION; + /* * Isolate git from the calling user's configuration, which could otherwise * break once HOME is unset below. It runs as a constructor because git reads -- cgit 2.12.1