diff options
author | Edward Thomson <ethomson@microsoft.com> | 2013-11-04 14:50:25 -0500 |
---|---|---|
committer | Edward Thomson <ethomson@microsoft.com> | 2013-11-04 14:50:25 -0500 |
commit | dd64c71c2685d0b72b6f58149ecf2a972a6ea98b (patch) | |
tree | b94556b25f9d8ac17494bcff2bbc46de20704b37 /include/git2/odb_backend.h | |
parent | becb13c0f04c4ba54cf27303136293dbf8abfd73 (diff) | |
download | libgit2-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.h | 10 |
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 |