diff options
Diffstat (limited to 'environment.c')
-rw-r--r-- | environment.c | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/environment.c b/environment.c index 9ebf485a73..8f5eaa7dd8 100644 --- a/environment.c +++ b/environment.c @@ -42,6 +42,15 @@ enum safe_crlf safe_crlf = SAFE_CRLF_WARN; unsigned whitespace_rule_cfg = WS_DEFAULT_RULE; enum branch_track git_branch_track = BRANCH_TRACK_REMOTE; enum rebase_setup_type autorebase = AUTOREBASE_NEVER; +enum push_default_type push_default = PUSH_DEFAULT_MATCHING; +#ifndef OBJECT_CREATION_MODE +#define OBJECT_CREATION_MODE OBJECT_CREATION_USES_HARDLINKS +#endif +enum object_creation_mode object_creation_mode = OBJECT_CREATION_MODE; +int grafts_replace_parents = 1; + +/* Parallel index stat data preload? */ +int core_preload_index = 0; /* This is set by setup_git_dir_gently() and/or git_default_config() */ char *git_work_tree_cfg; @@ -80,6 +89,11 @@ int is_bare_repository(void) return is_bare_repository_cfg && !get_git_work_tree(); } +int have_git_dir(void) +{ + return !!git_dir; +} + const char *get_git_dir(void) { if (!git_dir) |