diff options
| author | Edward Thomson <ethomson@edwardthomson.com> | 2015-04-10 11:38:07 +0200 |
|---|---|---|
| committer | Edward Thomson <ethomson@edwardthomson.com> | 2015-04-10 11:38:07 +0200 |
| commit | 623fbd93f1a7538df0c9a433df68f87bbd58b803 (patch) | |
| tree | 48411be1dd99a979f789107d4de1d0051b93557e /include | |
| parent | 63af449e24125b050dbad3530c3ec64e2e4ee754 (diff) | |
| parent | c84a9dd2da864a975b5dee408e3edaf84422b828 (diff) | |
| download | libgit2-623fbd93f1a7538df0c9a433df68f87bbd58b803.tar.gz | |
Merge pull request #2974 from libgit2/cmn/clone-everything
Make sure to pack referenced objects for non-branches
Diffstat (limited to 'include')
| -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 4cf426273..4941998eb 100644 --- a/include/git2/pack.h +++ b/include/git2/pack.h @@ -128,6 +128,18 @@ GIT_EXTERN(int) git_packbuilder_insert_commit(git_packbuilder *pb, const git_oid GIT_EXTERN(int) git_packbuilder_insert_walk(git_packbuilder *pb, git_revwalk *walk); /** + * Recursively insert an object and its referenced objects + * + * Insert the object as well as any object it references. + * + * @param pb the packbuilder + * @param id the id of the root object to insert + * @param name optional name for the object + * @return 0 or an error code + */ +GIT_EXTERN(int) git_packbuilder_insert_recur(git_packbuilder *pb, const git_oid *id, const char *name); + +/** * Write the contents of the packfile to an in-memory buffer * * The contents of the buffer will become a valid packfile, even though there |
