summaryrefslogtreecommitdiff
path: root/include/git2/pack.h
diff options
context:
space:
mode:
authorEdward Thomson <ethomson@microsoft.com>2013-11-07 12:03:44 -0500
committerEdward Thomson <ethomson@microsoft.com>2013-11-07 12:04:32 -0500
commit1e60e5f42dbcf081ac7eece12a5eebab5871636f (patch)
treea01d41a27e19926ea18db1b6976b6455e423ac5a /include/git2/pack.h
parent9018a453ea801a965795af6c8f8523a49f4d167b (diff)
downloadlibgit2-1e60e5f42dbcf081ac7eece12a5eebab5871636f.tar.gz
Allow callers to set mode on packfile creation
Diffstat (limited to 'include/git2/pack.h')
-rw-r--r--include/git2/pack.h2
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);