Skip to content

Commit c90e529

Browse files
peffgitster
authored andcommitted
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 <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent 652f18e commit c90e529

File tree

3 files changed

+0
-3
lines changed

3 files changed

+0
-3
lines changed

cache.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -747,7 +747,6 @@ extern int grafts_replace_parents;
747747
*/
748748
#define GIT_REPO_VERSION 0
749749
#define GIT_REPO_VERSION_READ 1
750-
extern int repository_format_version;
751750
extern int repository_format_precious_objects;
752751

753752
struct repository_format {

environment.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,6 @@ int log_all_ref_updates = -1; /* unspecified */
2525
int warn_ambiguous_refs = 1;
2626
int warn_on_object_refname_ambiguity = 1;
2727
int ref_paranoia = -1;
28-
int repository_format_version;
2928
int repository_format_precious_objects;
3029
const char *git_commit_encoding;
3130
const char *git_log_output_encoding;

setup.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -428,7 +428,6 @@ static int check_repository_format_gently(const char *gitdir, int *nongit_ok)
428428
die("%s", err.buf);
429429
}
430430

431-
repository_format_version = candidate.version;
432431
repository_format_precious_objects = candidate.precious_objects;
433432
string_list_clear(&candidate.unknown_extensions, 0);
434433
if (!has_common) {

0 commit comments

Comments
 (0)