Re: [PATCH] On Cygwin support both UNIX and DOS style path-names
From: Theo Niessink <hidden>
Date: 2016-06-15 22:51:40
Pascal Obry wrote:
In fact Cygwin supports both, so make Git agree with this.
Why not indeed, especially since both are already supported under MinGW.
+#define has_dos_drive_prefix(path) (isalpha(*(path)) && (path)[1] == ':') +#define is_dir_sep(c) ((c) == '/' || (c) == '\\')
I think that by defining is_dir_sep you enable DOS/Windows style paths throughout Git, so you might want to check compat/mingw.h for other, related changes. You will probably at least want the MinGW version of find_last_dir_sep as well, because the default find_last_dir_sep doesn't use is_dir_sep.