mirror of
https://git.proxmox.com/git/libgit2
synced 2025-05-05 11:50:27 +00:00
commit: make create_from_oids() accept plain oid
This commit is contained in:
parent
ce72e399d2
commit
467cbec73d
@ -25,8 +25,9 @@ GIT_BEGIN_DECL
|
||||
*
|
||||
* See documentation for `git_commit_create()` for information about the
|
||||
* parameters, as the meaning is identical excepting that `tree` and
|
||||
* `parents` now take `git_oid`. This is a dangerous API in that the
|
||||
* `parents` list of `git_oid`s in not checked for validity.
|
||||
* `parents` now take `git_oid`. This is a dangerous API in that nor
|
||||
* the `tree`, neither the `parents` list of `git_oid`s are checked for
|
||||
* validity.
|
||||
*/
|
||||
GIT_EXTERN(int) git_commit_create_from_oids(
|
||||
git_oid *oid,
|
||||
|
@ -96,7 +96,6 @@ int git_commit_create_from_oids(
|
||||
git_odb *odb;
|
||||
|
||||
assert(oid && repo && tree && parent_count >= 0);
|
||||
assert(git_object_owner((const git_object *)tree) == repo);
|
||||
|
||||
git_oid__writebuf(&commit, "tree ", tree);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user