From: David Aguilar <davvid@gmail.com>
To: kusmabite@gmail.com
Cc: Junio C Hamano <gitster@pobox.com>,
Tim Henigan <tim.henigan@gmail.com>,
git@vger.kernel.org
Subject: Re: [PATCH 3/3] difftool: Disable --symlinks on cygwin
Date: Thu, 26 Jul 2012 10:39:28 -0700 [thread overview]
Message-ID: <CAJDDKr4z_ddwe7s8dY80dZJMNP=75VK6NjOV0WCqFL_LDuMpBA@mail.gmail.com> (raw)
In-Reply-To: <CABPQNSZ=yWxVivadJfh9BMPtqiiGyyEL0vZu+fvsu_Zzhd7yhw@mail.gmail.com>
On Thu, Jul 26, 2012 at 4:31 AM, Erik Faye-Lund <kusmabite@gmail.com> wrote:
> On Wed, Jul 25, 2012 at 5:14 AM, David Aguilar <davvid@gmail.com> wrote:
>> Symlinks are not ubiquitous on Windows so make --no-symlinks the default.
>>
>> Signed-off-by: David Aguilar <davvid@gmail.com>
>> ---
>> I don't have cygwin so I can't verify this one myself.
>> Is 'cygwin' really the value of $^O there?
>>
>> git-difftool.perl | 3 ++-
>> 1 file changed, 2 insertions(+), 1 deletion(-)
>>
>> diff --git a/git-difftool.perl b/git-difftool.perl
>> index 591ee75..10d3d97 100755
>> --- a/git-difftool.perl
>> +++ b/git-difftool.perl
>> @@ -291,7 +291,8 @@ sub main
>> gui => undef,
>> help => undef,
>> prompt => undef,
>> - symlinks => $^O ne 'MSWin32' && $^O ne 'msys',
>> + symlinks => $^O ne 'cygwin' &&
>> + $^O ne 'MSWin32' && $^O ne 'msys',
>
> I thought Cygwin supported (their own version of) symlinks? What's the
> rationale for not using it by default there?
I am not a Cygwin user so I cannot verify whether it is a good or bad idea.
I have a few questions regarding symlinks on Cygwin:
Do the symlinks work consistently with the Perl symlink() function?
Can we always rely on this capability being available?
Do all win32 filesystems support it?
Do all builds of cygwin perl support it?
If any of these answers are "no" or "maybe", then an improvement
beyond this patch would be to perhaps support a `difftool.symlinks`
configuration variable so that the user can tell us what to use as the
default.
--
David
next prev parent reply other threads:[~2012-07-26 17:39 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-07-25 3:14 [PATCH 0/3] Incremental updates for da/difftool-updates David Aguilar
2012-07-25 3:14 ` [PATCH 1/3] difftool: Handle finding mergetools/ in a path with spaces David Aguilar
2012-07-25 3:14 ` [PATCH 2/3] difftool: Check all return codes from compare() David Aguilar
2012-07-25 3:14 ` [PATCH 3/3] difftool: Disable --symlinks on cygwin David Aguilar
2012-07-25 19:39 ` Stefano Lattarini
2012-07-26 11:31 ` Erik Faye-Lund
2012-07-26 17:39 ` David Aguilar [this message]
2012-07-26 19:04 ` Junio C Hamano
2012-07-25 16:36 ` [PATCH 0/3] Incremental updates for da/difftool-updates Junio C Hamano
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to='CAJDDKr4z_ddwe7s8dY80dZJMNP=75VK6NjOV0WCqFL_LDuMpBA@mail.gmail.com' \
--to=davvid@gmail.com \
--cc=git@vger.kernel.org \
--cc=gitster@pobox.com \
--cc=kusmabite@gmail.com \
--cc=tim.henigan@gmail.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).