aboutsummaryrefslogtreecommitdiffstats
path: root/cache.h
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2008-04-25 12:17:45 -0700
committerJunio C Hamano <gitster@pobox.com>2008-04-25 12:17:45 -0700
commit36c79d2bf893b9957688a6c8c13cc0bf0589e596 (patch)
tree39c9815e82d5fffdb537ea9bfd6cf71359dec845 /cache.h
parent049a226fa14fb25c03d2146c2f8f184cfea5e5bf (diff)
parent06cbe8550324e0fd2290839bf3b9a92aa53b70ab (diff)
downloadgit-36c79d2bf893b9957688a6c8c13cc0bf0589e596.tar.gz
Merge branch 'ho/shared'
* ho/shared: Make core.sharedRepository more generic
Diffstat (limited to 'cache.h')
-rw-r--r--cache.h16
1 files changed, 13 insertions, 3 deletions
diff --git a/cache.h b/cache.h
index 50b28fad01..3fcc283002 100644
--- a/cache.h
+++ b/cache.h
@@ -474,10 +474,20 @@ static inline void hashclr(unsigned char *hash)
int git_mkstemp(char *path, size_t n, const char *template);
+/*
+ * NOTE NOTE NOTE!!
+ *
+ * PERM_UMASK, OLD_PERM_GROUP and OLD_PERM_EVERYBODY enumerations must
+ * not be changed. Old repositories have core.sharedrepository written in
+ * numeric format, and therefore these values are preserved for compatibility
+ * reasons.
+ */
enum sharedrepo {
- PERM_UMASK = 0,
- PERM_GROUP,
- PERM_EVERYBODY
+ PERM_UMASK = 0,
+ OLD_PERM_GROUP = 1,
+ OLD_PERM_EVERYBODY = 2,
+ PERM_GROUP = 0660,
+ PERM_EVERYBODY = 0664,
};
int git_config_perm(const char *var, const char *value);
int adjust_shared_perm(const char *path);