version: stop using the_repository
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.
Signed-off-by René Scharfe <[email protected]>
--- version.c | 2 -- version.h | 2 -- 2 files changed, 4 deletions(-)
version.c +0 -2
@@ -1,5 +1,3 @@ -#define USE_THE_REPOSITORY_VARIABLE -#include "git-compat-util.h" #include "version.h" #include "strbuf.h"
version.h +0 -2
@@ -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
Quoted 3 lines · René Scharfe
Actually it has never been used in
version.csincecf7ee481902(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