summaryrefslogtreecommitdiff
path: root/builtin/receive-pack.c
diff options
context:
space:
mode:
authorDerrick Stolee <dstolee@microsoft.com>2019-05-17 18:41:49 (GMT)
committerJunio C Hamano <gitster@pobox.com>2019-06-12 18:33:54 (GMT)
commit2d511cfc0bfe1d2b98ba8b272ddd9ba83e84e5f8 (patch)
tree1bf0a1bf940a3c1a4db47c88a23fbf8b3bb7a080 /builtin/receive-pack.c
parent5472c32c3724e1404c3d80368edc28910969c29a (diff)
downloadgit-2d511cfc0bfe1d2b98ba8b272ddd9ba83e84e5f8.zip
git-2d511cfc0bfe1d2b98ba8b272ddd9ba83e84e5f8.tar.gz
git-2d511cfc0bfe1d2b98ba8b272ddd9ba83e84e5f8.tar.bz2
packfile: rename close_all_packs to close_object_store
The close_all_packs() method is now responsible for more than just pack-files. It also closes the commit-graph and the multi-pack-index. Rename the function to be more descriptive of its larger role. The name also fits because the input parameter is a raw_object_store. Signed-off-by: Derrick Stolee <dstolee@microsoft.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'builtin/receive-pack.c')
-rw-r--r--builtin/receive-pack.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/builtin/receive-pack.c b/builtin/receive-pack.c
index d58b775..92cd1f5 100644
--- a/builtin/receive-pack.c
+++ b/builtin/receive-pack.c
@@ -2032,7 +2032,7 @@ int cmd_receive_pack(int argc, const char **argv, const char *prefix)
proc.git_cmd = 1;
proc.argv = argv_gc_auto;
- close_all_packs(the_repository->objects);
+ close_object_store(the_repository->objects);
if (!start_command(&proc)) {
if (use_sideband)
copy_to_sideband(proc.err, -1, NULL);