public inbox for git@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH] version: stop using the_repository
@ 2026-02-08 17:01 René Scharfe
  2026-02-09  9:24 ` Patrick Steinhardt
  0 siblings, 1 reply; 2+ messages in thread
From: René Scharfe @ 2026-02-08 17:01 UTC (permalink / raw)
  To: Git List

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>
---
 version.c | 2 --
 version.h | 2 --
 2 files changed, 4 deletions(-)

diff --git a/version.c b/version.c
index 279269cc50..21ec7c0fbe 100644
--- 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"
diff --git a/version.h b/version.h
index bbde6d371a..7d502dcee0 100644
--- 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[];
 
-- 
2.52.0

^ permalink raw reply related	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2026-02-09  9:24 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-02-08 17:01 [PATCH] version: stop using the_repository René Scharfe
2026-02-09  9:24 ` Patrick Steinhardt

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox