From: Junio C Hamano Date: Mon, 19 Jun 2006 03:19:09 +0000 (-0700) Subject: Merge branch 'jc/shared' X-Git-Tag: v1.4.1-rc1~3^2~11 X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=d9faecac641ab31c7bfe5008f5a6dca119b79bc7;p=git.git Merge branch 'jc/shared' * jc/shared: shared repository: optionally allow reading to "others". --- d9faecac641ab31c7bfe5008f5a6dca119b79bc7 diff --cc cache.h index f630cf4bf,1b8e053f2..7fcb6d406 --- a/cache.h +++ b/cache.h @@@ -208,9 -208,15 +208,15 @@@ 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); -char *safe_strncpy(char *, const char *, size_t); +size_t safe_strncpy(char *, const char *, size_t); char *enter_repo(char *path, int strict); /* Read and unpack a sha1 file into memory, write memory to a sha1 file */