diff options
| author | Patrick Steinhardt <ps@pks.im> | 2025-11-03 08:42:05 +0100 |
|---|---|---|
| committer | Junio C Hamano <gitster@pobox.com> | 2025-11-03 12:18:47 -0800 |
| commit | 05130c6c9eed9ff7450e9067d7215032eb914c10 (patch) | |
| tree | 2901600c46ddc91632986b45be4203865c2ea061 /object-file.h | |
| parent | ff7ad5cb3936514ec0be32531ff6274b53dbe091 (diff) | |
| download | git-05130c6c9eed9ff7450e9067d7215032eb914c10.tar.gz | |
object-file: rename `has_loose_object()`
Rename `has_loose_object()` to `odb_source_loose_has_object()` so that
it becomes clear that this is tied to a specific loose object source.
This matches our modern naming schema for functions.
Signed-off-by: Patrick Steinhardt <ps@pks.im>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'object-file.h')
| -rw-r--r-- | object-file.h | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/object-file.h b/object-file.h index ca13d3d64e..065a44bb8a 100644 --- a/object-file.h +++ b/object-file.h @@ -52,6 +52,14 @@ void *odb_source_loose_map_object(struct odb_source *source, unsigned long *size); /* + * Return true iff an object database source has a loose object + * with the specified name. This function does not respect replace + * references. + */ +int odb_source_loose_has_object(struct odb_source *source, + const struct object_id *oid); + +/* * Populate and return the loose object cache array corresponding to the * given object ID. */ @@ -67,14 +75,6 @@ const char *odb_loose_path(struct odb_source *source, const struct object_id *oid); /* - * Return true iff an object database source has a loose object - * with the specified name. This function does not respect replace - * references. - */ -int has_loose_object(struct odb_source *source, - const struct object_id *oid); - -/* * Iterate over the files in the loose-object parts of the object * directory "path", triggering the following callbacks: * |
