diff options
author | Junio C Hamano <junkio@cox.net> | 2005-08-02 16:45:21 -0700 |
---|---|---|
committer | Junio C Hamano <junkio@cox.net> | 2005-08-03 16:27:38 -0700 |
commit | 8d5afef0f9b3a252f7b90406d35c295dc698e26d (patch) | |
tree | 0656bdb1282ecb419ab8fe2a2ce9b702b16e19ed /cache.h | |
parent | ee639140c9d3d7d0c8821e6b7d36c75ae578b326 (diff) | |
download | git-8d5afef0f9b3a252f7b90406d35c295dc698e26d.tar.gz |
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.h | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -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); |