Skip to contentSkip to conversation

version: stop using the_repository

PATCH In review René Scharfe 2 participants 2 messages Feb 8 – Feb 9

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 version: stop using the_repository

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.

---
 version.c | 2 --
 version.h | 2 --
 2 files changed, 4 deletions(-)
version.c +0 -2
index 279269cc50..21ec7c0fbe 100644
@@ -1,5 +1,3 @@
-#define USE_THE_REPOSITORY_VARIABLE
-
 #include "git-compat-util.h"
 #include "version.h"
 #include "strbuf.h"
version.h +0 -2
index bbde6d371a..7d502dcee0 100644
@@ -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[];
 
Signature · 1 line
2.52.0
#1 lore raw
Quoted 3 lines · René Scharfe

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.

Quite straight forward, looks good to me. Thanks!

Patrick