summaryrefslogtreecommitdiff
path: root/include/git2/indexer.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/indexer.h
parent9018a453ea801a965795af6c8f8523a49f4d167b (diff)
downloadlibgit2-1e60e5f42dbcf081ac7eece12a5eebab5871636f.tar.gz
Allow callers to set mode on packfile creation
Diffstat (limited to 'include/git2/indexer.h')
-rw-r--r--include/git2/indexer.h2
1 files changed, 2 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);