summaryrefslogtreecommitdiff
path: root/cache.h
diff options
context:
space:
mode:
authorTorsten Bögershausen <tboegi@web.de>2013-03-30 09:53:32 (GMT)
committerJunio C Hamano <gitster@pobox.com>2013-04-05 19:37:55 (GMT)
commit3a429d3b8d03c98fbc775eb34a54b7b2bd74e02b (patch)
tree9938523b58ac4e5ed643066a4068e0979bc63f43 /cache.h
parent0117c2f043183fb99e9b046b0df7d64c1b296624 (diff)
downloadgit-3a429d3b8d03c98fbc775eb34a54b7b2bd74e02b.zip
git-3a429d3b8d03c98fbc775eb34a54b7b2bd74e02b.tar.gz
git-3a429d3b8d03c98fbc775eb34a54b7b2bd74e02b.tar.bz2
path.c: simplify adjust_shared_perm()
All calls to set_shared_perm() use mode == 0, so simplify the function. Because all callers use the macro adjust_shared_perm(path) from cache.h to call this function, convert it to a proper function, losing set_shared_perm(). Since path.c has much more functions than just mkpath() these days, drop the stale comment about it. Signed-off-by: Torsten Bögershausen <tboegi@web.de> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'cache.h')
-rw-r--r--cache.h3
1 files changed, 1 insertions, 2 deletions
diff --git a/cache.h b/cache.h
index c56315c..9f3b649 100644
--- a/cache.h
+++ b/cache.h
@@ -713,8 +713,7 @@ enum sharedrepo {
PERM_EVERYBODY = 0664
};
int git_config_perm(const char *var, const char *value);
-int set_shared_perm(const char *path, int mode);
-#define adjust_shared_perm(path) set_shared_perm((path), 0)
+int adjust_shared_perm(const char *path);
int safe_create_leading_directories(char *path);
int safe_create_leading_directories_const(const char *path);
int mkdir_in_gitdir(const char *path);