aboutsummaryrefslogtreecommitdiff
path: root/cache.h
diff options
context:
space:
mode:
authorJunio C Hamano <junkio@cox.net>2006-06-18 20:19:09 -0700
committerJunio C Hamano <junkio@cox.net>2006-06-18 20:19:09 -0700
commitd9faecac641ab31c7bfe5008f5a6dca119b79bc7 (patch)
treee132b0d810e00c6ea2bb4ea5c8a4597ff4cb0e2a /cache.h
parent72afd3eea6758a5ef181eaa3eef0b21639177494 (diff)
parent94df2506edd76a886a1044376f8c99349b2f226e (diff)
downloadgit-d9faecac641ab31c7bfe5008f5a6dca119b79bc7.tar.gz
git-d9faecac641ab31c7bfe5008f5a6dca119b79bc7.tar.xz
Merge branch 'jc/shared'
* jc/shared: shared repository: optionally allow reading to "others".
Diffstat (limited to 'cache.h')
-rw-r--r--cache.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/cache.h b/cache.h
index f630cf4bf..7fcb6d406 100644
--- a/cache.h
+++ b/cache.h
@@ -208,6 +208,12 @@ extern const unsigned char null_sha1[20];
int git_mkstemp(char *path, size_t n, const char *template);
+enum sharedrepo {
+ PERM_UMASK = 0,
+ PERM_GROUP,
+ PERM_EVERYBODY
+};
+int git_config_perm(const char *var, const char *value);
int adjust_shared_perm(const char *path);
int safe_create_leading_directories(char *path);
size_t safe_strncpy(char *, const char *, size_t);