diff options
| author | Patrick Steinhardt <ps@pks.im> | 2024-06-06 07:29:01 +0200 |
|---|---|---|
| committer | Junio C Hamano <gitster@pobox.com> | 2024-06-06 09:04:31 -0700 |
| commit | 318efb966bc9b246703152f77cadd4e407de7cd9 (patch) | |
| tree | b920e69a5cebb0599f60f02b4207cd630d632a60 /repository.c | |
| parent | setup: unset ref storage when reinitializing repository version (diff) | |
| download | git-318efb966bc9b246703152f77cadd4e407de7cd9.tar.gz git-318efb966bc9b246703152f77cadd4e407de7cd9.zip | |
refs: convert ref storage format to an enum
The ref storage format is tracked as a simple unsigned integer, which
makes it harder than necessary to discover what that integer actually is
or where its values are defined.
Convert the ref storage format to instead be an enum.
Signed-off-by: Patrick Steinhardt <ps@pks.im>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'repository.c')
| -rw-r--r-- | repository.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/repository.c b/repository.c index d29b0304fb..166863f852 100644 --- a/repository.c +++ b/repository.c @@ -124,7 +124,8 @@ void repo_set_compat_hash_algo(struct repository *repo, int algo) repo_read_loose_object_map(repo); } -void repo_set_ref_storage_format(struct repository *repo, unsigned int format) +void repo_set_ref_storage_format(struct repository *repo, + enum ref_storage_format format) { repo->ref_storage_format = format; } |
