setup: drop repository_format_version global

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>

Jeff King committed Mar 11, 2016 at 17:37 UTC c90e5293d11bc2c671312778aea33922a4ee1725
3 files changed -3
cache.h
-1
@@ -747,7 +747,6 @@ extern int grafts_replace_parents;
747 */
748 #define GIT_REPO_VERSION 0
749 #define GIT_REPO_VERSION_READ 1
750 -extern int repository_format_version;
750 extern int repository_format_precious_objects;
751
752 struct repository_format {
environment.c
-1
@@ -25,7 +25,6 @@ int log_all_ref_updates = -1; /* unspecified */
25 int warn_ambiguous_refs = 1;
26 int warn_on_object_refname_ambiguity = 1;
27 int ref_paranoia = -1;
28 -int repository_format_version;
28 int repository_format_precious_objects;
29 const char *git_commit_encoding;
30 const char *git_log_output_encoding;
setup.c
-1
@@ -428,7 +428,6 @@ static int check_repository_format_gently(const char *gitdir, int *nongit_ok)
428 die("%s", err.buf);
429 }
430
431 - repository_format_version = candidate.version;
431 repository_format_precious_objects = candidate.precious_objects;
432 string_list_clear(&candidate.unknown_extensions, 0);
433 if (!has_common) {