summaryrefslogtreecommitdiff
path: root/environment.c
diff options
context:
space:
mode:
authorStefan Beller <stefanbeller@googlemail.com>2013-10-26 17:03:02 (GMT)
committerJunio C Hamano <gitster@pobox.com>2013-10-28 15:56:06 (GMT)
commit84471a12130a40a050ce502c49f1faba97651add (patch)
tree200cf3c501ed8a567924ac51a20d9c9f1a55c456 /environment.c
parent746593bdcaf86827e016c97e091442d6a227de0f (diff)
downloadgit-84471a12130a40a050ce502c49f1faba97651add.zip
git-84471a12130a40a050ce502c49f1faba97651add.tar.gz
git-84471a12130a40a050ce502c49f1faba97651add.tar.bz2
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 <stefanbeller@googlemail.com> Acked-by: Michael Haggerty <mhagger@alum.mit.edu> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'environment.c')
-rw-r--r--environment.c5
1 files changed, 0 insertions, 5 deletions
diff --git a/environment.c b/environment.c
index 378254c..0a15349 100644
--- a/environment.c
+++ b/environment.c
@@ -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)