Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mono/libgit2.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBen Straub <bstraub@github.com>2012-07-12 06:17:07 +0400
committerBen Straub <bstraub@github.com>2012-07-12 06:20:49 +0400
commit339f3d071eda7154fcfc996a3d7d67d84a5e1482 (patch)
tree8c84d0a09e437353157bd71615f44dcc39fc181b /src/path.c
parent81167385e90e7059a9610e8f7f3e8201dc6d46b9 (diff)
Move is_dot_or_dotdotW into path.h.
Diffstat (limited to 'src/path.c')
-rw-r--r--src/path.c9
1 files changed, 1 insertions, 8 deletions
diff --git a/src/path.c b/src/path.c
index e6406751a..ee7e07e45 100644
--- a/src/path.c
+++ b/src/path.c
@@ -391,13 +391,6 @@ bool git_path_isfile(const char *path)
#ifdef GIT_WIN32
-static bool is_dot_or_dotdotW(const wchar_t *name)
-{
- return (name[0] == L'.' &&
- (name[1] == L'\0' ||
- (name[1] == L'.' && name[2] == L'\0')));
-}
-
bool git_path_is_empty_dir(const char *path)
{
git_buf pathbuf = GIT_BUF_INIT;
@@ -418,7 +411,7 @@ bool git_path_is_empty_dir(const char *path)
}
do {
- if (!is_dot_or_dotdotW(ffd.cFileName)) {
+ if (!git_path_is_dot_or_dotdotW(ffd.cFileName)) {
retval = false;
}
} while (FindNextFileW(hFind, &ffd) != 0);