aboutsummaryrefslogtreecommitdiff
path: root/cache.h
diff options
context:
space:
mode:
authorJunio C Hamano <junkio@cox.net>2005-11-25 15:59:09 -0800
committerJunio C Hamano <junkio@cox.net>2005-11-27 01:32:59 -0800
commitab9cb76f661c1794800361c27bc5a515245aaaef (patch)
treed13942115e4692463908c41efe7d2d7369a63d52 /cache.h
parent51b3c00e9d95371a9ad202204f01c5981f241b20 (diff)
downloadgit-ab9cb76f661c1794800361c27bc5a515245aaaef.tar.gz
git-ab9cb76f661c1794800361c27bc5a515245aaaef.tar.xz
Repository format version check.
This adds the repository format version code, first done by Martin Atukunda. Signed-off-by: Junio C Hamano <junkio@cox.net>
Diffstat (limited to 'cache.h')
-rw-r--r--cache.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/cache.h b/cache.h
index 6ac94c5a1..de53f4128 100644
--- a/cache.h
+++ b/cache.h
@@ -182,6 +182,10 @@ extern int trust_executable_bit;
extern int only_use_symrefs;
extern int diff_rename_limit_default;
+#define GIT_REPO_VERSION 0
+extern int repository_format_version;
+extern int check_repository_format(void);
+
#define MTIME_CHANGED 0x0001
#define CTIME_CHANGED 0x0002
#define OWNER_CHANGED 0x0004
@@ -388,6 +392,7 @@ extern int git_config_int(const char *, const char *);
extern int git_config_bool(const char *, const char *);
extern int git_config_set(const char *, const char *);
extern int git_config_set_multivar(const char *, const char *, const char *, int);
+extern int check_repository_format_version(const char *var, const char *value);
#define MAX_GITNAME (1000)
extern char git_default_email[MAX_GITNAME];