*/
struct odb_source *source = the_repository->objects->sources->next;
for (; source; source = source->next)
- if (has_loose_object(source, oid))
+ if (odb_source_loose_has_object(source, oid))
return 0;
}
int found = 0;
for (; !found && source; source = source->next)
- if (has_loose_object(source, oid))
+ if (odb_source_loose_has_object(source, oid))
found = 1;
/*
return check_and_freshen_file(path.buf, freshen);
}
-int has_loose_object(struct odb_source *source,
- const struct object_id *oid)
+int odb_source_loose_has_object(struct odb_source *source,
+ const struct object_id *oid)
{
return check_and_freshen_source(source, oid, 0);
}
int ret;
for (struct odb_source *s = source->odb->sources; s; s = s->next)
- if (has_loose_object(s, oid))
+ if (odb_source_loose_has_object(s, oid))
return 0;
oi.typep = &type;
const struct object_id *oid,
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.
struct strbuf *buf,
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: