summaryrefslogtreecommitdiff
path: root/cache.h
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2015-12-08 22:14:49 (GMT)
committerJunio C Hamano <gitster@pobox.com>2015-12-08 22:14:49 (GMT)
commitb1cda70fff238aa8947dc8b527dc4a5f6bd4ede0 (patch)
treebbb316ed03593eb48779bb5fa60dbce0c5614161 /cache.h
parentfa5f2398e5163f855b0a680b0bf704e2c2e7da24 (diff)
parent0845122c39c415fa50904ee94c6b60e4e722466b (diff)
downloadgit-b1cda70fff238aa8947dc8b527dc4a5f6bd4ede0.zip
git-b1cda70fff238aa8947dc8b527dc4a5f6bd4ede0.tar.gz
git-b1cda70fff238aa8947dc8b527dc4a5f6bd4ede0.tar.bz2
Merge branch 'dt/refs-backend-pre-vtable'
Code preparation for pluggable ref backends. * dt/refs-backend-pre-vtable: refs: break out ref conflict checks files_log_ref_write: new function initdb: make safe_create_dir public refs: split filesystem-based refs code into a new file refs/refs-internal.h: new header file refname_is_safe(): improve docstring pack_if_possible_fn(): use ref_type() instead of is_per_worktree_ref() copy_msg(): rename to copy_reflog_msg() verify_refname_available(): new function verify_refname_available(): rename function
Diffstat (limited to 'cache.h')
-rw-r--r--cache.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/cache.h b/cache.h
index 2a9e902..c3b196e 100644
--- a/cache.h
+++ b/cache.h
@@ -1768,4 +1768,12 @@ void stat_validity_update(struct stat_validity *sv, int fd);
int versioncmp(const char *s1, const char *s2);
void sleep_millisec(int millisec);
+/*
+ * Create a directory and (if share is nonzero) adjust its permissions
+ * according to the shared_repository setting. Only use this for
+ * directories under $GIT_DIR. Don't use it for working tree
+ * directories.
+ */
+void safe_create_dir(const char *dir, int share);
+
#endif /* CACHE_H */