refs: move `struct pack_refs_opts` to where it's used

The declaration of `struct pack_refs_opts` is in a seemingly random place. Move it so that it's located right next to its flags and functions that use it. Signed-off-by: Patrick Steinhardt <ps@pks.im> Signed-off-by: Junio C Hamano <gitster@pobox.com>

Patrick Steinhardt committed Mar 25, 2024 at 11:03 UTC 0f65c7a6761142c7abc6a2415325eda6f44edf49
1 file changed +6 -6
refs.h
+6 -6
@@ -66,12 +66,6 @@ const char *ref_storage_format_to_name(unsigned int ref_storage_format);
66 #define RESOLVE_REF_NO_RECURSE 0x02
67 #define RESOLVE_REF_ALLOW_BAD_NAME 0x04
68
69 -struct pack_refs_opts {
70 - unsigned int flags;
71 - struct ref_exclusions *exclusions;
72 - struct string_list *includes;
73 -};
74 -
69 const char *refs_resolve_ref_unsafe(struct ref_store *refs,
70 const char *refname,
71 int resolve_flags,
@@ -433,6 +427,12 @@ void warn_dangling_symrefs(FILE *fp, const char *msg_fmt,
427 #define PACK_REFS_PRUNE 0x0001
428 #define PACK_REFS_ALL 0x0002
429
430 +struct pack_refs_opts {
431 + unsigned int flags;
432 + struct ref_exclusions *exclusions;
433 + struct string_list *includes;
434 +};
435 +
436 /*
437 * Write a packed-refs file for the current repository.
438 * flags: Combination of the above PACK_REFS_* flags.