diff options
author | Dmitry Potapov <dpotapov@gmail.com> | 2008-09-27 12:41:50 +0400 |
---|---|---|
committer | Shawn O. Pearce <spearce@spearce.org> | 2008-09-30 14:30:06 -0700 |
commit | d2b0708e1a65953ad93a4adfc27938de0f8df252 (patch) | |
tree | 028921f8167158f6c03a44ce015c6f80fb2b2d53 /cache.h | |
parent | 8b745e3ffdabe6ef110dc064af46b0ba993941e0 (diff) | |
download | git-d2b0708e1a65953ad93a4adfc27938de0f8df252.tar.gz git-d2b0708e1a65953ad93a4adfc27938de0f8df252.tar.xz |
add have_git_dir() function
This function is used to learn whether git_dir is already set up or not.
It is necessary, because we want to read configuration in compat/cygwin.c
Signed-off-by: Dmitry Potapov <dpotapov@gmail.com>
Signed-off-by: Shawn O. Pearce <spearce@spearce.org>
Diffstat (limited to 'cache.h')
-rw-r--r-- | cache.h | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -313,6 +313,7 @@ extern int is_bare_repository(void); extern int is_inside_git_dir(void); extern char *git_work_tree_cfg; extern int is_inside_work_tree(void); +extern int have_git_dir(void); extern const char *get_git_dir(void); extern char *get_object_directory(void); extern char *get_index_file(void); |