git/environment.c

/*
 * We put all the git config variables in this same object
 * file, so that programs can link against the config parser
 * without having to link against all the rest of git.
 *
 * In particular, no need to bring in libz etc unless needed,
 * even if you might want to know where the git directory etc
 * are.
 */

#define USE_THE_REPOSITORY_VARIABLE

#include "git-compat-util.h"
#include "abspath.h"
#include "branch.h"
#include "convert.h"
#include "environment.h"
#include "gettext.h"
#include "repository.h"
#include "config.h"
#include "refs.h"
#include "fmt-merge-msg.h"
#include "commit.h"
#include "strvec.h"
#include "path.h"
#include "chdir-notify.h"
#include "setup.h"
#include "write-or-die.h"

int trust_executable_bit =;
int trust_ctime =;
int check_stat =;
int has_symlinks =;
int minimum_abbrev =, default_abbrev =;
int ignore_case;
int assume_unchanged;
int is_bare_repository_cfg =; /* unspecified */
int warn_on_object_refname_ambiguity =;
int repository_format_precious_objects;
char *git_commit_encoding;
char *git_log_output_encoding;
char *apply_default_whitespace;
char *apply_default_ignorewhitespace;
char *git_attributes_file;
char *git_hooks_path;
int zlib_compression_level =;
int pack_compression_level =;
int fsync_object_files =;
int use_fsync =;
enum fsync_method fsync_method =;
enum fsync_component fsync_components =;
size_t packed_git_window_size =;
size_t packed_git_limit =;
size_t delta_base_cache_limit =;
unsigned long big_file_threshold =;
char *editor_program;
char *askpass_program;
char *excludes_file;
enum auto_crlf auto_crlf =;
enum eol core_eol =;
int global_conv_flags_eol =;
char *check_roundtrip_encoding;
enum branch_track git_branch_track =;
enum rebase_setup_type autorebase =;
enum push_default_type push_default =;
#ifndef OBJECT_CREATION_MODE
#define OBJECT_CREATION_MODE
#endif
enum object_creation_mode object_creation_mode =;
int grafts_keep_true_parents;
int core_apply_sparse_checkout;
int core_sparse_checkout_cone;
int sparse_expect_files_outside_of_patterns;
int merge_log_config =;
int precomposed_unicode =; /* see probe_utf8_pathname_composition() */
unsigned long pack_size_limit_cfg;
int max_allowed_tree_depth =/*
	 * When traversing into too-deep trees, Visual C-compiled Git seems to
	 * run into some internal stack overflow detection in the
	 * `RtlpAllocateHeap()` function that is called from within
	 * `git_inflate_init()`'s call tree. The following value seems to be
	 * low enough to avoid that by letting Git exit with an error before
	 * the stack overflow can occur.
	 */
	512;
#else
	2048;
#endif

#ifndef PROTECT_HFS_DEFAULT
#define PROTECT_HFS_DEFAULT
#endif
int protect_hfs =;

#ifndef PROTECT_NTFS_DEFAULT
#define PROTECT_NTFS_DEFAULT
#endif
int protect_ntfs =;

/*
 * The character that begins a commented line in user-editable file
 * that is subject to stripspace.
 */
const char *comment_line_str =;
char *comment_line_str_to_free;
int auto_comment_line_char;

/* Parallel index stat data preload? */
int core_preload_index =;

/* This is set by setup_git_dir_gently() and/or git_default_config() */
char *git_work_tree_cfg;

/*
 * Repository-local GIT_* environment variables; see environment.h for details.
 */
const char * const local_repo_env[] =;

const char *getenv_safe(struct strvec *argv, const char *name)
{}

int is_bare_repository(void)
{}

int have_git_dir(void)
{}

const char *get_git_namespace(void)
{}

const char *strip_namespace(const char *namespaced_ref)
{}

const char *get_log_output_encoding(void)
{}

const char *get_commit_output_encoding(void)
{}

static int the_shared_repository =;
static int need_shared_repository_from_config =;

void set_shared_repository(int value)
{}

int get_shared_repository(void)
{}

void reset_shared_repository(void)
{}

int use_optional_locks(void)
{}

int print_sha1_ellipsis(void)
{}