diff options
| author | Vicent Martà <vicent@github.com> | 2013-04-23 11:37:40 -0700 |
|---|---|---|
| committer | Vicent Martà <vicent@github.com> | 2013-04-23 11:37:40 -0700 |
| commit | 6c9dc12b6a86290af63ed11f1209ebad91e3e1ca (patch) | |
| tree | bbcc8a0a70ff3aff7a63af260106fc489706f5d8 /include/git2 | |
| parent | 9a9de29d36c82d20a821b9b076ad388364bc5553 (diff) | |
| parent | 0b90366c3bf5c7149cf69b5fa1a8327032f8a60f (diff) | |
| download | libgit2-6c9dc12b6a86290af63ed11f1209ebad91e3e1ca.tar.gz | |
Merge pull request #1501 from xavier-l/packbuilder-commit
Added function to insert commit into pack
Diffstat (limited to 'include/git2')
| -rw-r--r-- | include/git2/pack.h | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/include/git2/pack.h b/include/git2/pack.h index 2f033bef6..118b8d554 100644 --- a/include/git2/pack.h +++ b/include/git2/pack.h @@ -95,6 +95,18 @@ GIT_EXTERN(int) git_packbuilder_insert(git_packbuilder *pb, const git_oid *id, c GIT_EXTERN(int) git_packbuilder_insert_tree(git_packbuilder *pb, const git_oid *id); /** + * Insert a commit object + * + * This will add a commit as well as the completed referenced tree. + * + * @param pb The packbuilder + * @param id The oid of the commit + * + * @return 0 or an error code + */ +GIT_EXTERN(int) git_packbuilder_insert_commit(git_packbuilder *pb, const git_oid *id); + +/** * Write the new pack and the corresponding index to path * * @param pb The packbuilder |
