refs: remove `PACK_REFS_ALL` flag
commit35aeabd6c2845b89515f1fb374231dcc5d63d61d
authorPatrick Steinhardt <ps@pks.im>
Mon, 25 Mar 2024 10:03:07 +0000 (25 11:03 +0100)
committerJunio C Hamano <gitster@pobox.com>
Mon, 25 Mar 2024 16:54:07 +0000 (25 09:54 -0700)
tree2d41a84d4b92d9378f8afa5a2cf7852ceb3be30f
parent0f65c7a6761142c7abc6a2415325eda6f44edf49
refs: remove `PACK_REFS_ALL` flag

The intent of the `PACK_REFS_ALL` flag is to ask the backend to compact
all refs instead of only a subset of them. Thus, this flag gets passed
down to `refs_pack_refs()` via `struct pack_refs_opts::flags`.

But starting with 4fe42f326e (pack-refs: teach pack-refs --include
option, 2023-05-12), the flag's semantics have changed. Instead of being
handled by the respective backends, this flag is now getting handled by
the callers of `refs_pack_refs()` which will add a single glob ("*") to
the list of refs-to-be-packed. Thus, the flag serves no purpose to the
ref backends anymore.

Remove the flag and replace it with a local variable.

Signed-off-by: Patrick Steinhardt <ps@pks.im>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
builtin/pack-refs.c
refs.h