mirror of
https://github.com/git/git
synced 2024-11-04 16:17:49 +00:00
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>
This commit is contained in:
parent
641223137b
commit
3467663d47
4 changed files with 9 additions and 3 deletions
2
cache.h
2
cache.h
|
@ -648,6 +648,4 @@ int stat_validity_check(struct stat_validity *sv, const char *path);
|
|||
*/
|
||||
void stat_validity_update(struct stat_validity *sv, int fd);
|
||||
|
||||
int versioncmp(const char *s1, const char *s2);
|
||||
|
||||
#endif /* CACHE_H */
|
||||
|
|
|
@ -19,6 +19,7 @@
|
|||
#include "revision.h"
|
||||
#include "utf8.h"
|
||||
#include "version.h"
|
||||
#include "versioncmp.h"
|
||||
#include "trailer.h"
|
||||
#include "wt-status.h"
|
||||
#include "commit-slab.h"
|
||||
|
|
|
@ -1,6 +1,7 @@
|
|||
#include "cache.h"
|
||||
#include "git-compat-util.h"
|
||||
#include "config.h"
|
||||
#include "string-list.h"
|
||||
#include "versioncmp.h"
|
||||
|
||||
/*
|
||||
* versioncmp(): copied from string/strverscmp.c in glibc commit
|
||||
|
|
6
versioncmp.h
Normal file
6
versioncmp.h
Normal file
|
@ -0,0 +1,6 @@
|
|||
#ifndef VERSIONCMP_H
|
||||
#define VERSIONCMP_H
|
||||
|
||||
int versioncmp(const char *s1, const char *s2);
|
||||
|
||||
#endif /* VERSIONCMP_H */
|
Loading…
Reference in a new issue