Skip to content

Commit 3467663

Browse files
newrengitster
authored andcommitted
versioncmp.h: move declarations for versioncmp.c functions from cache.h
Signed-off-by: Elijah Newren <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent 6412231 commit 3467663

File tree

4 files changed

+9
-3
lines changed

4 files changed

+9
-3
lines changed

cache.h

-2
Original file line numberDiff line numberDiff line change
@@ -648,6 +648,4 @@ int stat_validity_check(struct stat_validity *sv, const char *path);
648648
*/
649649
void stat_validity_update(struct stat_validity *sv, int fd);
650650

651-
int versioncmp(const char *s1, const char *s2);
652-
653651
#endif /* CACHE_H */

ref-filter.c

+1
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@
1919
#include "revision.h"
2020
#include "utf8.h"
2121
#include "version.h"
22+
#include "versioncmp.h"
2223
#include "trailer.h"
2324
#include "wt-status.h"
2425
#include "commit-slab.h"

versioncmp.c

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
1-
#include "cache.h"
1+
#include "git-compat-util.h"
22
#include "config.h"
33
#include "string-list.h"
4+
#include "versioncmp.h"
45

56
/*
67
* versioncmp(): copied from string/strverscmp.c in glibc commit

versioncmp.h

+6
Original file line numberDiff line numberDiff line change
@@ -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 */

0 commit comments

Comments
 (0)