From 87cc9d17ec52a6ff2b71b9851c5b61f9e1da72be Mon Sep 17 00:00:00 2001 From: Gerhard Wiesinger Date: Wed, 28 Apr 2010 06:46:28 +0200 Subject: [PATCH 1/2] Added global git directory when environment variable GIT_DIR_GLOBAL is set, e.g. export GIT_DIR_GLOBAL=/home/gerhard/.git_global --- environment.h | 8 ++++++++ setup.h | 6 ++++++ 2 files changed, 14 insertions(+), 0 deletions(-) create mode 100644 environment.h create mode 100644 setup.h diff --git a/environment.h b/environment.h new file mode 100644 index 0000000..fb6a368 --- /dev/null +++ b/environment.h @@ -0,0 +1,8 @@ +#ifndef ENVIRONMENT_H +#define ENVIRONMENT_H + +char *get_git_dir_global_base_dir(void); +char *get_git_dir_from_environment(void); +int is_git_dir_global_environment(void); + +#endif /* ENVIRONMENT_H */ diff --git a/setup.h b/setup.h new file mode 100644 index 0000000..2047ba5 --- /dev/null +++ b/setup.h @@ -0,0 +1,6 @@ +#ifndef SETUP_H +#define SETUP_H + +int is_git_directory(const char *suspect); + +#endif /* SETUP_H */ -- 1.6.2.5