]> Kevux Git Server - rit/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 279269c..21ec7c0 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 bbde6d3..7d502dc 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[];