refs: remove unused headers

In the 'refs/' namespace, some of the included header files are not needed, let's remove them. Signed-off-by: Karthik Nayak <karthik.188@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>

Karthik Nayak committed Oct 7, 2025 at 14:11 UTC 2d2920c0cebd9e3537e9068a6ef5c60b389ce4a0
3 files changed -3
refs/debug.c
-1
@@ -1,7 +1,6 @@
1 #include "git-compat-util.h"
2 #include "hex.h"
3 #include "refs-internal.h"
4 -#include "string-list.h"
4 #include "trace.h"
5
6 static struct trace_key trace_refs = TRACE_KEY_INIT(REFS);
refs/files-backend.c
-1
@@ -20,7 +20,6 @@
20 #include "../dir-iterator.h"
21 #include "../lockfile.h"
22 #include "../object.h"
23 -#include "../object-file.h"
23 #include "../path.h"
24 #include "../dir.h"
25 #include "../chdir-notify.h"
refs/reftable-backend.c
-1
@@ -11,7 +11,6 @@
11 #include "../hex.h"
12 #include "../iterator.h"
13 #include "../ident.h"
14 -#include "../lockfile.h"
14 #include "../object.h"
15 #include "../path.h"
16 #include "../refs.h"