summaryrefslogtreecommitdiffstats
path: root/packfile.c
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2021-12-15 18:39:50 +0100
committerJunio C Hamano <gitster@pobox.com>2021-12-15 18:39:50 +0100
commit79aee56c1ee342953a6d9f49f45b89d7f44a624f (patch)
tree2131d09649d5365815dc1d6a099d0d1c2f4fc9e0 /packfile.c
parentMerge branch 'es/doc-stdout-vs-stderr' (diff)
parentpackfile: make `close_pack_revindex()` static (diff)
downloadgit-79aee56c1ee342953a6d9f49f45b89d7f44a624f.tar.xz
git-79aee56c1ee342953a6d9f49f45b89d7f44a624f.zip
Merge branch 'tb/pack-revindex-on-disk-cleanup'
Code clean-up. * tb/pack-revindex-on-disk-cleanup: packfile: make `close_pack_revindex()` static
Diffstat (limited to 'packfile.c')
-rw-r--r--packfile.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/packfile.c b/packfile.c
index e30b051c8a..11bb262482 100644
--- a/packfile.c
+++ b/packfile.c
@@ -324,7 +324,8 @@ void close_pack_index(struct packed_git *p)
}
}
-void close_pack_revindex(struct packed_git *p) {
+static void close_pack_revindex(struct packed_git *p)
+{
if (!p->revindex_map)
return;