]> git.ipfire.org Git - thirdparty/git.git/commitdiff
version: stop using the_repository
authorRené Scharfe <l.s.r@web.de>
Sun, 8 Feb 2026 17:01:24 +0000 (18:01 +0100)
committerJunio C Hamano <gitster@pobox.com>
Sun, 8 Feb 2026 23:16:49 +0000 (15:16 -0800)
Actually it has never been used in version.c since cf7ee481902 (agent:
advertise OS name via agent capability, 2025-02-15) added the dependency
macro.  Remove it, along with the also unused struct declaration.

Signed-off-by: René Scharfe <l.s.r@web.de>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
version.c
version.h

index 279269cc50fe727d7ccac5e6ae5bb35dc017035e..21ec7c0fbe24ea0a8fac9506fec6be63e5dbf2e9 100644 (file)
--- a/version.c
+++ b/version.c
@@ -1,5 +1,3 @@
-#define USE_THE_REPOSITORY_VARIABLE
-
 #include "git-compat-util.h"
 #include "version.h"
 #include "strbuf.h"
index bbde6d371affb7d9f54b83431ae3769253a0c3e7..7d502dcee0e34310a27fc4c1553b0977f3af2310 100644 (file)
--- a/version.h
+++ b/version.h
@@ -1,8 +1,6 @@
 #ifndef VERSION_H
 #define VERSION_H
 
-struct repository;
-
 extern const char git_version_string[];
 extern const char git_built_from_commit_string[];