diff options
author | Vicent Marti <tanoku@gmail.com> | 2014-03-26 18:17:08 +0100 |
---|---|---|
committer | Vicent Marti <tanoku@gmail.com> | 2014-03-26 18:17:08 +0100 |
commit | 6105d597072cea0d1a89ee184826c2c98bf5d772 (patch) | |
tree | 15eee3ead65a32c0610b8776476d53e4de49d8cb /include/git2/pack.h | |
parent | 77b699e0da3d4a4fed742893bd172f3ee7b936d5 (diff) | |
download | libgit2-vmg/mempack.tar.gz |
In-memory packing backendvmg/mempack
Diffstat (limited to 'include/git2/pack.h')
-rw-r--r-- | include/git2/pack.h | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/include/git2/pack.h b/include/git2/pack.h index 11bb559d8..29c926c65 100644 --- a/include/git2/pack.h +++ b/include/git2/pack.h @@ -115,6 +115,17 @@ GIT_EXTERN(int) git_packbuilder_insert_tree(git_packbuilder *pb, const git_oid * GIT_EXTERN(int) git_packbuilder_insert_commit(git_packbuilder *pb, const git_oid *id); /** + * Write the contents of the packfile to an in-memory buffer + * + * The contents of the buffer will become a valid packfile, even though there + * will be no attached index + * + * @param buf Buffer where to write the packfile + * @param pb The packbuilder + */ +GIT_EXTERN(int) git_packbuilder_write_buf(git_buf *buf, git_packbuilder *pb); + +/** * Write the new pack and corresponding index file to path. * * @param pb The packbuilder |