diff options
author | Edward Thomson <ethomson@microsoft.com> | 2013-11-07 12:03:44 -0500 |
---|---|---|
committer | Edward Thomson <ethomson@microsoft.com> | 2013-11-07 12:04:32 -0500 |
commit | 1e60e5f42dbcf081ac7eece12a5eebab5871636f (patch) | |
tree | a01d41a27e19926ea18db1b6976b6455e423ac5a /include/git2 | |
parent | 9018a453ea801a965795af6c8f8523a49f4d167b (diff) | |
download | libgit2-1e60e5f42dbcf081ac7eece12a5eebab5871636f.tar.gz |
Allow callers to set mode on packfile creation
Diffstat (limited to 'include/git2')
-rw-r--r-- | include/git2/indexer.h | 2 | ||||
-rw-r--r-- | include/git2/pack.h | 2 |
2 files changed, 4 insertions, 0 deletions
diff --git a/include/git2/indexer.h b/include/git2/indexer.h index fb55672a9..e4c03ad06 100644 --- a/include/git2/indexer.h +++ b/include/git2/indexer.h @@ -20,6 +20,7 @@ typedef struct git_indexer git_indexer; * * @param out where to store the indexer instance * @param path to the directory where the packfile should be stored + * @param mode permissions to use creating packfile or 0 for defaults * @param odb object database from which to read base objects when * fixing thin packs. Pass NULL if no thin pack is expected (an error * will be returned if there are bases missing) @@ -29,6 +30,7 @@ typedef struct git_indexer git_indexer; GIT_EXTERN(int) git_indexer_new( git_indexer **out, const char *path, + unsigned int mode, git_odb *odb, git_transfer_progress_callback progress_cb, void *progress_cb_payload); 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); |