Merge branch 'jv/pack-objects-narrower-ref-iteration'
authorJunio C Hamano <gitster@pobox.com>
Sat, 6 Feb 2021 00:40:45 +0000 (16:40 -0800)
committerJunio C Hamano <gitster@pobox.com>
Sat, 6 Feb 2021 00:40:45 +0000 (16:40 -0800)
commit77db59c2f91de69d5b204b88422d01b2632bcecd
treeebc9ddc33fd30dfd0e76c4176d24cb7915d23268
parentf6ef8baba293f851b07192169f40004ce44a74c1
parentbe18153b975844f8792b03e337f1a4c86fe87531
Merge branch 'jv/pack-objects-narrower-ref-iteration'

The "pack-objects" command needs to iterate over all the tags when
automatic tag following is enabled, but it actually iterated over
all refs and then discarded everything outside "refs/tags/"
hierarchy, which was quite wasteful.

* jv/pack-objects-narrower-ref-iteration:
  builtin/pack-objects.c: avoid iterating all refs
builtin/pack-objects.c