Skip to content

Commit 0f65c7a

Browse files
pks-tgitster
authored andcommitted
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 <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent ed12124 commit 0f65c7a

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

refs.h

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -66,12 +66,6 @@ const char *ref_storage_format_to_name(unsigned int ref_storage_format);
6666
#define RESOLVE_REF_NO_RECURSE 0x02
6767
#define RESOLVE_REF_ALLOW_BAD_NAME 0x04
6868

69-
struct pack_refs_opts {
70-
unsigned int flags;
71-
struct ref_exclusions *exclusions;
72-
struct string_list *includes;
73-
};
74-
7569
const char *refs_resolve_ref_unsafe(struct ref_store *refs,
7670
const char *refname,
7771
int resolve_flags,
@@ -433,6 +427,12 @@ void warn_dangling_symrefs(FILE *fp, const char *msg_fmt,
433427
#define PACK_REFS_PRUNE 0x0001
434428
#define PACK_REFS_ALL 0x0002
435429

430+
struct pack_refs_opts {
431+
unsigned int flags;
432+
struct ref_exclusions *exclusions;
433+
struct string_list *includes;
434+
};
435+
436436
/*
437437
* Write a packed-refs file for the current repository.
438438
* flags: Combination of the above PACK_REFS_* flags.

0 commit comments

Comments
 (0)