diff options
Diffstat (limited to 'src/path.h')
| -rw-r--r-- | src/path.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/path.h b/src/path.h index 116477043..a845b3a14 100644 --- a/src/path.h +++ b/src/path.h @@ -91,6 +91,13 @@ GIT_INLINE(int) git_path_is_dot_or_dotdot(const char *name) } #ifdef GIT_WIN32 +GIT_INLINE(int) git_path_is_dot_or_dotdotW(const wchar_t *name) +{ + return (name[0] == L'.' && + (name[1] == L'\0' || + (name[1] == L'.' && name[2] == L'\0'))); +} + /** * Convert backslashes in path to forward slashes. */ |
