diff options
author | Junio C Hamano <gitster@pobox.com> | 2008-04-25 21:17:45 +0200 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2008-04-25 21:17:45 +0200 |
commit | 36c79d2bf893b9957688a6c8c13cc0bf0589e596 (patch) | |
tree | 39c9815e82d5fffdb537ea9bfd6cf71359dec845 /cache.h | |
parent | Merge branch 'maint' (diff) | |
parent | Make core.sharedRepository more generic (diff) | |
download | git-36c79d2bf893b9957688a6c8c13cc0bf0589e596.tar.xz git-36c79d2bf893b9957688a6c8c13cc0bf0589e596.zip |
Merge branch 'ho/shared'
* ho/shared:
Make core.sharedRepository more generic
Diffstat (limited to 'cache.h')
-rw-r--r-- | cache.h | 16 |
1 files changed, 13 insertions, 3 deletions
@@ -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); |