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 <l.s.r@web.de> Signed-off-by: Junio C Hamano <gitster@pobox.com>
René Scharfe committed
Feb 8, 2026 at 18:01 UTC
6c21e53badfc31883fa30fdb009d6b983e9e42ac
2 files changed
-4
version.c
-2
@@ -1,5 +1,3 @@
1
-#define USE_THE_REPOSITORY_VARIABLE
2
-
1
#include "git-compat-util.h"
2
#include "version.h"
3
#include "strbuf.h"
version.h
-2
@@ -1,8 +1,6 @@
1
#ifndef VERSION_H
2
#define VERSION_H
3
4
-struct repository;
5
-
4
extern const char git_version_string[];
5
extern const char git_built_from_commit_string[];
6