diff options
author | Junio C Hamano <gitster@pobox.com> | 2007-07-01 13:10:42 -0700 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2007-07-01 13:10:42 -0700 |
commit | 0305b636542c8c137ed7c82fee90db8d3621118c (patch) | |
tree | 3a2a5e7a2b814b2f96c5edd681768706b9b3a048 /cache.h | |
parent | cd5ada993d6a992eaed1c416f9a2ed6ba9c4cb6d (diff) | |
parent | 9489d0f197185d584294aa99a09a1b3c5ebb25e0 (diff) | |
download | git-0305b636542c8c137ed7c82fee90db8d3621118c.tar.gz git-0305b636542c8c137ed7c82fee90db8d3621118c.tar.xz |
Merge branch 'ei/worktree+filter'
* ei/worktree+filter:
filter-branch: always export GIT_DIR if it is set
setup_git_directory: fix segfault if repository is found in cwd
test GIT_WORK_TREE
extend rev-parse test for --is-inside-work-tree
Use new semantics of is_bare/inside_git_dir/inside_work_tree
introduce GIT_WORK_TREE to specify the work tree
test git rev-parse
rev-parse: introduce --is-bare-repository
rev-parse: document --is-inside-git-dir
Diffstat (limited to 'cache.h')
-rw-r--r-- | cache.h | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -192,6 +192,7 @@ enum object_type { }; #define GIT_DIR_ENVIRONMENT "GIT_DIR" +#define GIT_WORK_TREE_ENVIRONMENT "GIT_WORK_TREE" #define DEFAULT_GIT_DIR_ENVIRONMENT ".git" #define DB_ENVIRONMENT "GIT_OBJECT_DIRECTORY" #define INDEX_ENVIRONMENT "GIT_INDEX_FILE" @@ -207,6 +208,7 @@ enum object_type { extern int is_bare_repository_cfg; extern int is_bare_repository(void); extern int is_inside_git_dir(void); +extern int is_inside_work_tree(void); extern const char *get_git_dir(void); extern char *get_object_directory(void); extern char *get_refs_directory(void); |