]> granicus.if.org Git - git/commitdiff
setup: drop repository_format_version global
authorJeff King <peff@peff.net>
Fri, 11 Mar 2016 22:37:18 +0000 (17:37 -0500)
committerJunio C Hamano <gitster@pobox.com>
Fri, 11 Mar 2016 23:02:24 +0000 (15:02 -0800)
Nobody reads this anymore, and they're not likely to; the
interesting thing is whether or not we passed
check_repository_format(), and possibly the individual
"extension" variables.

Signed-off-by: Jeff King <peff@peff.net>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
cache.h
environment.c
setup.c

diff --git a/cache.h b/cache.h
index 7704bc6c89e1b4c758f097e4b51d5ce5d126693d..bec6db5e2ea72a88d564f0474520cce34797704f 100644 (file)
--- a/cache.h
+++ b/cache.h
@@ -747,7 +747,6 @@ extern int grafts_replace_parents;
  */
 #define GIT_REPO_VERSION 0
 #define GIT_REPO_VERSION_READ 1
-extern int repository_format_version;
 extern int repository_format_precious_objects;
 
 struct repository_format {
index 8b8c8e849667548970ccc8225ed2e77d065e2b07..d9e3861fe8f1f93cf2b34235dd9eaf9d8bd8847a 100644 (file)
@@ -25,7 +25,6 @@ int log_all_ref_updates = -1; /* unspecified */
 int warn_ambiguous_refs = 1;
 int warn_on_object_refname_ambiguity = 1;
 int ref_paranoia = -1;
-int repository_format_version;
 int repository_format_precious_objects;
 const char *git_commit_encoding;
 const char *git_log_output_encoding;
diff --git a/setup.c b/setup.c
index fbe7ec16dd2b2e73403aa92eed39004adc3f4767..1314c170ab322abc7dea77b75b9ca45f120fe823 100644 (file)
--- a/setup.c
+++ b/setup.c
@@ -428,7 +428,6 @@ static int check_repository_format_gently(const char *gitdir, int *nongit_ok)
                die("%s", err.buf);
        }
 
-       repository_format_version = candidate.version;
        repository_format_precious_objects = candidate.precious_objects;
        string_list_clear(&candidate.unknown_extensions, 0);
        if (!has_common) {