summaryrefslogtreecommitdiff
path: root/include/git2/odb_backend.h
diff options
context:
space:
mode:
authorEdward Thomson <ethomson@microsoft.com>2013-11-04 14:50:25 -0500
committerEdward Thomson <ethomson@microsoft.com>2013-11-04 14:50:25 -0500
commitdd64c71c2685d0b72b6f58149ecf2a972a6ea98b (patch)
treeb94556b25f9d8ac17494bcff2bbc46de20704b37 /include/git2/odb_backend.h
parentbecb13c0f04c4ba54cf27303136293dbf8abfd73 (diff)
downloadlibgit2-dd64c71c2685d0b72b6f58149ecf2a972a6ea98b.tar.gz
Allow backend consumers to specify file mode
Diffstat (limited to 'include/git2/odb_backend.h')
-rw-r--r--include/git2/odb_backend.h10
1 files changed, 9 insertions, 1 deletions
diff --git a/include/git2/odb_backend.h b/include/git2/odb_backend.h
index 1b3e2fd12..d3dd733a8 100644
--- a/include/git2/odb_backend.h
+++ b/include/git2/odb_backend.h
@@ -40,10 +40,18 @@ GIT_EXTERN(int) git_odb_backend_pack(git_odb_backend **out, const char *objects_
* @param objects_dir the Git repository's objects directory
* @param compression_level zlib compression level to use
* @param do_fsync whether to do an fsync() after writing (currently ignored)
+ * @param dir_mode permissions to use creating a directory or 0 for defaults
+ * @param file_mode permissions to use creating a file or 0 for defaults
*
* @return 0 or an error code
*/
-GIT_EXTERN(int) git_odb_backend_loose(git_odb_backend **out, const char *objects_dir, int compression_level, int do_fsync);
+GIT_EXTERN(int) git_odb_backend_loose(
+ git_odb_backend **out,
+ const char *objects_dir,
+ int compression_level,
+ int do_fsync,
+ mode_t dir_mode,
+ mode_t file_mode);
/**
* Create a backend out of a single packfile