server-info.h: move declarations for server-info.c functions from cache.h
Signed-off-by: Elijah Newren <newren@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Elijah Newren committed
Apr 22, 2023 at 20:17 UTC
623b80bef2431f2f0dc550dda9da5cb633c606fd
6 files changed
+12
-4
builtin/receive-pack.c
+1
@@ -33,6 +33,7 @@
33
#include "object-store.h"
34
#include "protocol.h"
35
#include "commit-reach.h"
36
+#include "server-info.h"
37
#include "trace.h"
38
#include "trace2.h"
39
#include "worktree.h"
builtin/repack.c
+1
@@ -7,6 +7,7 @@
7
#include "hex.h"
8
#include "parse-options.h"
9
#include "run-command.h"
10
+#include "server-info.h"
11
#include "sigchain.h"
12
#include "strbuf.h"
13
#include "string-list.h"
builtin/update-server-info.c
+1
@@ -3,6 +3,7 @@
3
#include "builtin.h"
4
#include "gettext.h"
5
#include "parse-options.h"
6
+#include "server-info.h"
7
8
static const char * const update_server_info_usage[] = {
9
"git update-server-info [-f | --force]",
cache.h
-3
@@ -593,9 +593,6 @@ int df_name_compare(const char *name1, size_t len1, int mode1,
593
int name_compare(const char *name1, size_t len1, const char *name2, size_t len2);
594
int cache_name_stage_compare(const char *name1, int len1, int stage1, const char *name2, int len2, int stage2);
595
596
-/* Dumb servers support */
597
-int update_server_info(int);
598
-
596
#define COPY_READ_ERROR (-2)
597
#define COPY_WRITE_ERROR (-3)
598
int copy_fd(int ifd, int ofd);
server-info.c
+2
-1
@@ -1,4 +1,4 @@
1
-#include "cache.h"
1
+#include "git-compat-util.h"
2
#include "alloc.h"
3
#include "dir.h"
4
#include "environment.h"
@@ -11,6 +11,7 @@
11
#include "packfile.h"
12
#include "object-file.h"
13
#include "object-store.h"
14
+#include "server-info.h"
15
#include "strbuf.h"
16
#include "wrapper.h"
17
server-info.h
new
+7
@@ -0,0 +1,7 @@
1
+#ifndef SERVER_INFO_H
2
+#define SERVER_INFO_H
3
+
4
+/* Dumb servers support */
5
+int update_server_info(int);
6
+
7
+#endif /* SERVER_INFO_H */