Re: Cygwin Git with Windows paths
- Date: Sun, 18 Nov 2018 18:15:25 +0100
- From: Torsten Bögershausen <tboegi@xxxxxx>
- Subject: Re: Cygwin Git with Windows paths
On Sun, Nov 18, 2018 at 10:23:19AM -0600, Steven Penny wrote:
> On Sun, Nov 18, 2018 at 9:41 AM Torsten Bögershausen wrote:
> > Thanks for the report
> > It seams as if "C:" is not recognized as an absolute path under
> > cygwin.
> > May be it should ?
> > Does the following help ? (fully untested)
> that looks promising - but its not getting pulled in where it needs to be.
> perhaps another file need to be modified to utilize that macro?
The macro should be utilized, see git-compat-util.h:
And further down
static inline int git_has_dos_drive_prefix(const char *path)
#define has_dos_drive_prefix git_has_dos_drive_prefix
static inline int git_skip_dos_drive_prefix(char **path)
But it may be that we need to pull in more stuff, similar to mingw,
to get the C: stuff working, see
And it may even be that we need a special handling for the "\" to be treated
If you implement "skip_dos_drive_prefix" similar to mingw,
(rename mingw into cygwin) does
git clone <source> C:/my/dir/
That would be a progress, I think.