]> git.ipfire.org Git - thirdparty/git.git/commitdiff
server-info.h: move declarations for server-info.c functions from cache.h
authorElijah Newren <newren@gmail.com>
Sat, 22 Apr 2023 20:17:11 +0000 (20:17 +0000)
committerJunio C Hamano <gitster@pobox.com>
Mon, 24 Apr 2023 19:47:31 +0000 (12:47 -0700)
Signed-off-by: Elijah Newren <newren@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
builtin/receive-pack.c
builtin/repack.c
builtin/update-server-info.c
cache.h
server-info.c
server-info.h [new file with mode: 0644]

index 7d921170f1ca5919cb720d8106a77dc3b0b01da9..dae99e4554de4b7b8c683a3f8268ef976c3f120f 100644 (file)
@@ -33,6 +33,7 @@
 #include "object-store.h"
 #include "protocol.h"
 #include "commit-reach.h"
+#include "server-info.h"
 #include "trace.h"
 #include "trace2.h"
 #include "worktree.h"
index df4d8e0f0bafc912f4b5cb410aaf74abf6819ec4..bed2c2aaafb354624a2cf4b5cef1a205fb6e4c3e 100644 (file)
@@ -7,6 +7,7 @@
 #include "hex.h"
 #include "parse-options.h"
 #include "run-command.h"
+#include "server-info.h"
 #include "sigchain.h"
 #include "strbuf.h"
 #include "string-list.h"
index e7bff27ae4053d94ef4557c9688c1f6875d3f6a3..19dce3c06552e2e3d120b27b4563ebadf02dc18c 100644 (file)
@@ -3,6 +3,7 @@
 #include "builtin.h"
 #include "gettext.h"
 #include "parse-options.h"
+#include "server-info.h"
 
 static const char * const update_server_info_usage[] = {
        "git update-server-info [-f | --force]",
diff --git a/cache.h b/cache.h
index ffb9028f015c3246496e65441a915b4de98f6f56..2eb4546473f5dea023c6390375282bf679b7926c 100644 (file)
--- a/cache.h
+++ b/cache.h
@@ -593,9 +593,6 @@ int df_name_compare(const char *name1, size_t len1, int mode1,
 int name_compare(const char *name1, size_t len1, const char *name2, size_t len2);
 int cache_name_stage_compare(const char *name1, int len1, int stage1, const char *name2, int len2, int stage2);
 
-/* Dumb servers support */
-int update_server_info(int);
-
 #define COPY_READ_ERROR (-2)
 #define COPY_WRITE_ERROR (-3)
 int copy_fd(int ifd, int ofd);
index 68098ddd1ad6a84b3ad25a85b5361b8f353cd4c0..55aa04f00abe8f4d8a1a885e603964223bcd5cf7 100644 (file)
@@ -1,4 +1,4 @@
-#include "cache.h"
+#include "git-compat-util.h"
 #include "alloc.h"
 #include "dir.h"
 #include "environment.h"
@@ -11,6 +11,7 @@
 #include "packfile.h"
 #include "object-file.h"
 #include "object-store.h"
+#include "server-info.h"
 #include "strbuf.h"
 #include "wrapper.h"
 
diff --git a/server-info.h b/server-info.h
new file mode 100644 (file)
index 0000000..13bbde2
--- /dev/null
@@ -0,0 +1,7 @@
+#ifndef SERVER_INFO_H
+#define SERVER_INFO_H
+
+/* Dumb servers support */
+int update_server_info(int);
+
+#endif /* SERVER_INFO_H */