@@ -435,18 +435,24 @@ GIT_EXTERN(int) git_odb_write_multi_pack_index(
435435 git_odb * db );
436436
437437/**
438- * Determine the object-ID (sha1 hash) of a data buffer
438+ * Determine the object-ID (sha1 or sha256 hash) of a data buffer
439439 *
440- * The resulting SHA-1 OID will be the identifier for the data
441- * buffer as if the data buffer it were to written to the ODB.
440+ * The resulting OID will be the identifier for the data buffer as if
441+ * the data buffer it were to written to the ODB.
442442 *
443443 * @param out the resulting object-ID.
444444 * @param data data to hash
445445 * @param len size of the data
446- * @param type of the data to hash
446+ * @param object_type of the data to hash
447+ * @param oid_type the oid type to hash to
447448 * @return 0 or an error code
448449 */
449- GIT_EXTERN (int ) git_odb_hash (git_oid * out , const void * data , size_t len , git_object_t type );
450+ GIT_EXTERN (int ) git_odb_hash (
451+ git_oid * out ,
452+ const void * data ,
453+ size_t len ,
454+ git_object_t object_type ,
455+ git_oid_t oid_type );
450456
451457/**
452458 * Read a file from disk and fill a git_oid with the object id
@@ -458,10 +464,15 @@ GIT_EXTERN(int) git_odb_hash(git_oid *out, const void *data, size_t len, git_obj
458464 *
459465 * @param out oid structure the result is written into.
460466 * @param path file to read and determine object id for
461- * @param type the type of the object that will be hashed
467+ * @param object_type of the data to hash
468+ * @param oid_type the oid type to hash to
462469 * @return 0 or an error code
463470 */
464- GIT_EXTERN (int ) git_odb_hashfile (git_oid * out , const char * path , git_object_t type );
471+ GIT_EXTERN (int ) git_odb_hashfile (
472+ git_oid * out ,
473+ const char * path ,
474+ git_object_t object_type ,
475+ git_oid_t oid_type );
465476
466477/**
467478 * Create a copy of an odb_object
0 commit comments