]> git.ipfire.org Git - thirdparty/git.git/blobdiff - cache.h
t1010-mktree: Adjust expected result to code and documentation
[thirdparty/git.git] / cache.h
diff --git a/cache.h b/cache.h
index 4d89aa3da4d32653289c742f37abe8ef604ab11b..6e54993256befed7b77fc54559ff196d01292ef2 100644 (file)
--- a/cache.h
+++ b/cache.h
@@ -388,6 +388,15 @@ static inline enum object_type object_type(unsigned int mode)
 #define GIT_NOTES_REF_ENVIRONMENT "GIT_NOTES_REF"
 #define GIT_NOTES_DEFAULT_REF "refs/notes/commits"
 
+/*
+ * Repository-local GIT_* environment variables
+ * The array is NULL-terminated to simplify its usage in contexts such
+ * environment creation or simple walk of the list.
+ * The number of non-NULL entries is available as a macro.
+ */
+#define LOCAL_REPO_ENV_SIZE 8
+extern const char *const local_repo_env[LOCAL_REPO_ENV_SIZE + 1];
+
 extern int is_bare_repository_cfg;
 extern int is_bare_repository(void);
 extern int is_inside_git_dir(void);