diff options
author | John Wiegley <johnw@fpcomplete.com> | 2013-01-29 09:53:23 -0600 |
---|---|---|
committer | Russell Belfer <rb@github.com> | 2013-04-21 11:50:56 -0700 |
commit | 9255039898bf4c625f678f390c8075c11d10cad0 (patch) | |
tree | 68be2036c086cfe1903af3ad6f7faeacc1bea6fb /include/git2/commit.h | |
parent | 1384b688d0bb5cd784c453fffef69d27e3db44ca (diff) | |
download | libgit2-9255039898bf4c625f678f390c8075c11d10cad0.tar.gz |
Added git_commit_create_oid
Diffstat (limited to 'include/git2/commit.h')
-rw-r--r-- | include/git2/commit.h | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/include/git2/commit.h b/include/git2/commit.h index 764053eaa..e7ef51816 100644 --- a/include/git2/commit.h +++ b/include/git2/commit.h @@ -287,6 +287,26 @@ GIT_EXTERN(int) git_commit_create_v( int parent_count, ...); +/** + * Create a new commit in the repository, as with `git_commit_create`, + * using `git_oid` instances as parameters instead of `git_object`. + * + * 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`. + */ +GIT_EXTERN(int) git_commit_create_oid( + git_oid *oid, + git_repository *repo, + const char *update_ref, + const git_signature *author, + const git_signature *committer, + const char *message_encoding, + const char *message, + const git_oid *tree, + int parent_count, + const git_oid *parents[]); + /** @} */ GIT_END_DECL #endif |