diff options
author | Patrick Steinhardt <ps@pks.im> | 2024-03-25 11:03:07 +0100 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2024-03-25 17:54:07 +0100 |
commit | 35aeabd6c2845b89515f1fb374231dcc5d63d61d (patch) | |
tree | 2d41a84d4b92d9378f8afa5a2cf7852ceb3be30f /refs.h | |
parent | refs: move `struct pack_refs_opts` to where it's used (diff) | |
download | git-35aeabd6c2845b89515f1fb374231dcc5d63d61d.tar.xz git-35aeabd6c2845b89515f1fb374231dcc5d63d61d.zip |
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>
Diffstat (limited to 'refs.h')
-rw-r--r-- | refs.h | 2 |
1 files changed, 0 insertions, 2 deletions
@@ -422,10 +422,8 @@ void warn_dangling_symrefs(FILE *fp, const char *msg_fmt, /* * Flags for controlling behaviour of pack_refs() * PACK_REFS_PRUNE: Prune loose refs after packing - * PACK_REFS_ALL: Pack _all_ refs, not just tags and already packed refs */ #define PACK_REFS_PRUNE 0x0001 -#define PACK_REFS_ALL 0x0002 struct pack_refs_opts { unsigned int flags; |