Skip to content

Commit 84471a1

Browse files
stefanbellergitster
authored andcommitted
cache: remove unused function 'have_git_dir'
This function was added in d2b0708 (2008-09-27, add have_git_dir() function) as a preparation for adbc0b6 (2008-09-30, cygwin: Use native Win32 API for stat). However the second referenced commit was reverted in f66450a (2013-06-22, cygwin: Remove the Win32 l/stat() implementation), so we don't need to expose this wrapper function any more as a public API. Signed-off-by: Stefan Beller <[email protected]> Acked-by: Michael Haggerty <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent 746593b commit 84471a1

File tree

2 files changed

+0
-6
lines changed

2 files changed

+0
-6
lines changed

cache.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -391,7 +391,6 @@ extern int is_bare_repository(void);
391391
extern int is_inside_git_dir(void);
392392
extern char *git_work_tree_cfg;
393393
extern int is_inside_work_tree(void);
394-
extern int have_git_dir(void);
395394
extern const char *get_git_dir(void);
396395
extern int is_git_directory(const char *path);
397396
extern char *get_object_directory(void);

environment.c

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -155,11 +155,6 @@ int is_bare_repository(void)
155155
return is_bare_repository_cfg && !get_git_work_tree();
156156
}
157157

158-
int have_git_dir(void)
159-
{
160-
return !!git_dir;
161-
}
162-
163158
const char *get_git_dir(void)
164159
{
165160
if (!git_dir)

0 commit comments

Comments
 (0)