aboutsummaryrefslogtreecommitdiff
path: root/cache.h
diff options
context:
space:
mode:
authorJunio C Hamano <junkio@cox.net>2005-08-02 16:45:21 -0700
committerJunio C Hamano <junkio@cox.net>2005-08-03 16:27:38 -0700
commit8d5afef0f9b3a252f7b90406d35c295dc698e26d (patch)
tree0656bdb1282ecb419ab8fe2a2ce9b702b16e19ed /cache.h
parentee639140c9d3d7d0c8821e6b7d36c75ae578b326 (diff)
downloadgit-8d5afef0f9b3a252f7b90406d35c295dc698e26d.tar.gz
git-8d5afef0f9b3a252f7b90406d35c295dc698e26d.tar.xz
Install sample hooks
A template mechanism to populate newly initialized repository with default set of files is introduced. Use it to ship example hooks that can be used for update and post update checks, as Josef Weidendorfer suggests. Signed-off-by: Junio C Hamano <junkio@cox.net>
Diffstat (limited to 'cache.h')
-rw-r--r--cache.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/cache.h b/cache.h
index 1b49f0f4c..10243f0b8 100644
--- a/cache.h
+++ b/cache.h
@@ -128,6 +128,10 @@ extern unsigned int active_nr, active_alloc, active_cache_changed;
#define DB_ENVIRONMENT "GIT_OBJECT_DIRECTORY"
#define INDEX_ENVIRONMENT "GIT_INDEX_FILE"
#define GRAFT_ENVIRONMENT "GIT_GRAFT_FILE"
+#define TEMPLATE_DIR_ENVIRONMENT "GIT_TEMPLATE_DIRECTORY"
+#ifndef DEFAULT_GIT_TEMPLATE_ENVIRONMENT
+#define DEFAULT_GIT_TEMPLATE_ENVIRONMENT "/etc/git-core/templates"
+#endif
extern char *get_object_directory(void);
extern char *get_refs_directory(void);