cache: remove unused function 'have_git_dir'
This function was added ind2b0708
(2008-09-27, add have_git_dir() function) as a preparation foradbc0b6
(2008-09-30, cygwin: Use native Win32 API for stat). However the second referenced commit was reverted inf66450a
(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 <stefanbeller@googlemail.com> Acked-by: Michael Haggerty <mhagger@alum.mit.edu> Signed-off-by: Junio C Hamano <gitster@pobox.com>
This commit is contained in:

committed by
Junio C Hamano

parent
746593bdca
commit
84471a1213
@ -155,11 +155,6 @@ int is_bare_repository(void)
|
||||
return is_bare_repository_cfg && !get_git_work_tree();
|
||||
}
|
||||
|
||||
int have_git_dir(void)
|
||||
{
|
||||
return !!git_dir;
|
||||
}
|
||||
|
||||
const char *get_git_dir(void)
|
||||
{
|
||||
if (!git_dir)
|
||||
|
Reference in New Issue
Block a user