diff options
author | Derrick Stolee <dstolee@microsoft.com> | 2018-08-20 18:52:04 +0200 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2018-08-21 00:31:40 +0200 |
commit | 454ea2e4d7036862e8b2f69ef2dea640f8787510 (patch) | |
tree | 5c7d2c447869707b7519770b1a1b992555d63e14 /builtin/count-objects.c | |
parent | packfile: add all_packs list (diff) | |
download | git-454ea2e4d7036862e8b2f69ef2dea640f8787510.tar.xz git-454ea2e4d7036862e8b2f69ef2dea640f8787510.zip |
treewide: use get_all_packs
There are many places in the codebase that want to iterate over
all packfiles known to Git. The purposes are wide-ranging, and
those that can take advantage of the multi-pack-index already
do. So, use get_all_packs() instead of get_packed_git() to be
sure we are iterating over all packfiles.
Signed-off-by: Derrick Stolee <dstolee@microsoft.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'builtin/count-objects.c')
-rw-r--r-- | builtin/count-objects.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/builtin/count-objects.c b/builtin/count-objects.c index d51e2ce1ec..a7cad052c6 100644 --- a/builtin/count-objects.c +++ b/builtin/count-objects.c @@ -123,7 +123,7 @@ int cmd_count_objects(int argc, const char **argv, const char *prefix) struct strbuf pack_buf = STRBUF_INIT; struct strbuf garbage_buf = STRBUF_INIT; - for (p = get_packed_git(the_repository); p; p = p->next) { + for (p = get_all_packs(the_repository); p; p = p->next) { if (!p->pack_local) continue; if (open_pack_index(p)) |