* [PATCH] Test for windows format absolute paths on cygwin too
@ 2007-08-31 9:07 Robin Rosenberg
2007-08-31 9:31 ` Johannes Sixt
0 siblings, 1 reply; 3+ messages in thread
From: Robin Rosenberg @ 2007-08-31 9:07 UTC (permalink / raw)
To: git
---
Requires cherry-picking 6397c3119ecaa258b5185315c64062bec29bcd86
sha1_file.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/sha1_file.c b/sha1_file.c
index 97ea448..fa867b8 100644
--- a/sha1_file.c
+++ b/sha1_file.c
@@ -84,7 +84,7 @@ int get_sha1_hex(const char *hex, unsigned char *sha1)
/* returns the number of chars to skip to first component */
static inline int is_path_absolute(const char *path)
{
-#ifdef __MINGW32__
+#if defined(__MINGW32__) || defined(__CYGWIN__)
if (isalpha(path[0]) && path[1] == ':')
return 2 + (path[2] == '/');
/* TODO: C:dir/file 'relative' paths are not catered for */
--
1.5.3.rc7.25.g5389f-dirty
^ permalink raw reply related [flat|nested] 3+ messages in thread
* Re: [PATCH] Test for windows format absolute paths on cygwin too
2007-08-31 9:07 [PATCH] Test for windows format absolute paths on cygwin too Robin Rosenberg
@ 2007-08-31 9:31 ` Johannes Sixt
2007-08-31 21:07 ` Robin Rosenberg
0 siblings, 1 reply; 3+ messages in thread
From: Johannes Sixt @ 2007-08-31 9:31 UTC (permalink / raw)
To: Robin Rosenberg; +Cc: git
Robin Rosenberg schrieb:
> ---
>
> Requires cherry-picking 6397c3119ecaa258b5185315c64062bec29bcd86
... which you find in mingw.git.
However, that commit is not signed-off for a reason: It is going to be
rewritten mostly because it doesn't yet use the is_absolute_path() from
git-compat-util.h.
-- Hannes
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [PATCH] Test for windows format absolute paths on cygwin too
2007-08-31 9:31 ` Johannes Sixt
@ 2007-08-31 21:07 ` Robin Rosenberg
0 siblings, 0 replies; 3+ messages in thread
From: Robin Rosenberg @ 2007-08-31 21:07 UTC (permalink / raw)
To: Johannes Sixt; +Cc: git
fredag 31 augusti 2007 skrev Johannes Sixt:
> Robin Rosenberg schrieb:
> > ---
> >
> > Requires cherry-picking 6397c3119ecaa258b5185315c64062bec29bcd86
>
> ... which you find in mingw.git.
>
> However, that commit is not signed-off for a reason: It is going to be
> rewritten mostly because it doesn't yet use the is_absolute_path() from
> git-compat-util.h.
Ah, yes. It can probably wait. I needed this for the Eclipse Git plugin to work
nicely wth shared cloned repos under cygwin. With full clones there is no such
problem. Before the patch I created two references, one for cygwin and one
for EGIT, but cygwin was very noisy with that workaround and git-gui/gitk didn't
work reliably when they did work at all.
-- robin
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2007-08-31 21:05 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-08-31 9:07 [PATCH] Test for windows format absolute paths on cygwin too Robin Rosenberg
2007-08-31 9:31 ` Johannes Sixt
2007-08-31 21:07 ` Robin Rosenberg
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).