diff options
| author | Vicent Martà <vicent@github.com> | 2013-11-07 09:22:01 -0800 |
|---|---|---|
| committer | Vicent Martà <vicent@github.com> | 2013-11-07 09:22:01 -0800 |
| commit | 7be892114c7799619abb7892def014cedb623e78 (patch) | |
| tree | a01d41a27e19926ea18db1b6976b6455e423ac5a /include/git2/pack.h | |
| parent | 9018a453ea801a965795af6c8f8523a49f4d167b (diff) | |
| parent | 1e60e5f42dbcf081ac7eece12a5eebab5871636f (diff) | |
| download | libgit2-7be892114c7799619abb7892def014cedb623e78.tar.gz | |
Merge pull request #1952 from ethomson/packfile_mode
Allow callers to set mode on packfile creation
Diffstat (limited to 'include/git2/pack.h')
| -rw-r--r-- | include/git2/pack.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/include/git2/pack.h b/include/git2/pack.h index 4632699d1..52e7adad2 100644 --- a/include/git2/pack.h +++ b/include/git2/pack.h @@ -119,6 +119,7 @@ GIT_EXTERN(int) git_packbuilder_insert_commit(git_packbuilder *pb, const git_oid * * @param pb The packbuilder * @param path to the directory where the packfile and index should be stored + * @param mode permissions to use creating a packfile or 0 for defaults * @param progress_cb function to call with progress information from the indexer (optional) * @param progress_cb_payload payload for the progress callback (optional) * @@ -127,6 +128,7 @@ GIT_EXTERN(int) git_packbuilder_insert_commit(git_packbuilder *pb, const git_oid GIT_EXTERN(int) git_packbuilder_write( git_packbuilder *pb, const char *path, + unsigned int mode, git_transfer_progress_callback progress_cb, void *progress_cb_payload); |
