versioncmp.h: move declarations for versioncmp.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
3467663d47a56f9debd86cae75963eee023b3b89
4 files changed
+9
-3
cache.h
-2
@@ -648,6 +648,4 @@ int stat_validity_check(struct stat_validity *sv, const char *path);
648
*/
649
void stat_validity_update(struct stat_validity *sv, int fd);
650
651
-int versioncmp(const char *s1, const char *s2);
652
-
651
#endif /* CACHE_H */
ref-filter.c
+1
@@ -19,6 +19,7 @@
19
#include "revision.h"
20
#include "utf8.h"
21
#include "version.h"
22
+#include "versioncmp.h"
23
#include "trailer.h"
24
#include "wt-status.h"
25
#include "commit-slab.h"
versioncmp.c
+2
-1
@@ -1,6 +1,7 @@
1
-#include "cache.h"
1
+#include "git-compat-util.h"
2
#include "config.h"
3
#include "string-list.h"
4
+#include "versioncmp.h"
5
6
/*
7
* versioncmp(): copied from string/strverscmp.c in glibc commit
versioncmp.h
new
+6
@@ -0,0 +1,6 @@
1
+#ifndef VERSIONCMP_H
2
+#define VERSIONCMP_H
3
+
4
+int versioncmp(const char *s1, const char *s2);
5
+
6
+#endif /* VERSIONCMP_H */