diff options
author | Junio C Hamano <gitster@pobox.com> | 2021-12-15 18:39:50 +0100 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2021-12-15 18:39:50 +0100 |
commit | 79aee56c1ee342953a6d9f49f45b89d7f44a624f (patch) | |
tree | 2131d09649d5365815dc1d6a099d0d1c2f4fc9e0 /packfile.c | |
parent | Merge branch 'es/doc-stdout-vs-stderr' (diff) | |
parent | packfile: make `close_pack_revindex()` static (diff) | |
download | git-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.c | 3 |
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; |