From: Theo Niessink Date: Wed, 27 Jul 2011 15:57:04 GMT Subject: Re: [PATCH] On Cygwin support both UNIX and DOS style path-names Message-ID: 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.