aboutsummaryrefslogtreecommitdiff
path: root/odb.h
diff options
context:
space:
mode:
authorPatrick Steinhardt <ps@pks.im>2026-04-01 01:57:50 +0200
committerJunio C Hamano <gitster@pobox.com>2026-03-31 20:43:14 -0700
commitc63911b052dc286de5daddba8d4a20fd59348cee (patch)
tree4e22beca001ac84fbab80727ace17a289ca2a46c /odb.h
parentb2d421ece6a8e095394e76930e6929ee036571ef (diff)
downloadgit-c63911b052dc286de5daddba8d4a20fd59348cee.tar.xz
odb: rename `odb_has_object()` flags
Rename `odb_has_object()` flags to be properly prefixed with the function name. Signed-off-by: Patrick Steinhardt <ps@pks.im> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'odb.h')
-rw-r--r--odb.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/odb.h b/odb.h
index 9aadc1177a..8d739e118b 100644
--- a/odb.h
+++ b/odb.h
@@ -395,11 +395,11 @@ int odb_read_object_info(struct object_database *odb,
const struct object_id *oid,
unsigned long *sizep);
-enum has_object_flags {
+enum odb_has_object_flags {
/* Retry packed storage after checking packed and loose storage */
- HAS_OBJECT_RECHECK_PACKED = (1 << 0),
+ ODB_HAS_OBJECT_RECHECK_PACKED = (1 << 0),
/* Allow fetching the object in case the repository has a promisor remote. */
- HAS_OBJECT_FETCH_PROMISOR = (1 << 1),
+ ODB_HAS_OBJECT_FETCH_PROMISOR = (1 << 1),
};
/*
@@ -408,7 +408,7 @@ enum has_object_flags {
*/
int odb_has_object(struct object_database *odb,
const struct object_id *oid,
- enum has_object_flags flags);
+ enum odb_has_object_flags flags);
int odb_freshen_object(struct object_database *odb,
const struct object_id *oid);