aboutsummaryrefslogtreecommitdiff
path: root/sha1_file.c
diff options
context:
space:
mode:
authorJonathan Tan <jonathantanmy@google.com>2017-08-18 15:20:17 -0700
committerJunio C Hamano <gitster@pobox.com>2017-08-23 15:12:06 -0700
commit6d6a80e06893f391b4aaafa8829f1cb3a0ac23f6 (patch)
tree3eb83242aeefbef11c436ee0437e088735646cc7 /sha1_file.c
parent4f39cd821d1756f5f6d145f987576660136931ee (diff)
downloadgit-6d6a80e06893f391b4aaafa8829f1cb3a0ac23f6.tar.gz
git-6d6a80e06893f391b4aaafa8829f1cb3a0ac23f6.tar.xz
pack: move static state variables
sha1_file.c declares some static variables that store packfile-related state. Move them to packfile.c. They are temporarily made global, but subsequent commits will restore their scope back to static. Signed-off-by: Jonathan Tan <jonathantanmy@google.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'sha1_file.c')
-rw-r--r--sha1_file.c13
1 files changed, 0 insertions, 13 deletions
diff --git a/sha1_file.c b/sha1_file.c
index 063409fe0..d0033b980 100644
--- a/sha1_file.c
+++ b/sha1_file.c
@@ -684,19 +684,6 @@ static int has_loose_object(const unsigned char *sha1)
return check_and_freshen(sha1, 0);
}
-static unsigned int pack_used_ctr;
-static unsigned int pack_mmap_calls;
-static unsigned int peak_pack_open_windows;
-static unsigned int pack_open_windows;
-static unsigned int pack_open_fds;
-static unsigned int pack_max_fds;
-static size_t peak_pack_mapped;
-static size_t pack_mapped;
-struct packed_git *packed_git;
-
-static struct mru packed_git_mru_storage;
-struct mru *packed_git_mru = &packed_git_mru_storage;
-
void pack_report(void)
{
fprintf(stderr,