From: M Douglas McIlroy <m.douglas.mcilroy@dartmouth.edu>
To: Adam Dinwoodie <adam@dinwoodie.org>
Cc: Eric Sunshine <sunshine@sunshineco.com>,
Jeff King <peff@peff.net>, Junio C Hamano <gitster@pobox.com>,
"brian m. carlson" <sandals@crustytoothpaste.net>,
Git List <git@vger.kernel.org>
Subject: Re: default editor
Date: Thu, 11 Feb 2021 10:15:09 -0500 [thread overview]
Message-ID: <CAKH6PiXj39+8SQLiJfdDWyg=vmqiNAba=DKffg3adfztWJ0w_Q@mail.gmail.com> (raw)
In-Reply-To: <CA+kUOakk_=DRzroNb+0_RcfbkaOYLJxY=AtYMe4YQwuhB+_P_w@mail.gmail.com>
Eric and Adam,
Many thanks for so thoroughly exploring my query. I have long lived
with the limitations of
invoking Windows apps from Cygwin. Fortuitously I could work around
them without resorting
to "command prompt", though clearly that isn't always possible. And
you have shed light
on the difficulty of the opposite: invoking Cygwin apps from Windows.
Doug
On Mon, Feb 8, 2021 at 5:03 AM Adam Dinwoodie <adam@dinwoodie.org> wrote:
>
> On Sun, 7 Feb 2021 at 21:59, Eric Sunshine <sunshine@sunshineco.com> wrote:
> > By the way, it's also possible to install Cygwin's Git from the Cygwin
> > installer rather than attempting to use the Git provided by the
> > Git-For-Windows project. The combination of Cygwin `ed` and Cygwin
> > `git` works just fine (in my tests) once you configure `ed` as the Git
> > editor either by setting GIT_EDITOR or EDITOR environment variables to
> > `ed -l` or by configuring git itself:
> >
> > git config --global --add core.config 'ed -l'
> >
> > (You would want to uninstall Git-For-Windows, too, if you have it installed.)
>
> As the Cygwin Git maintainer, I'd strongly recommend this approach:
> either use a Cygwin toolchain or a Git for Windows one, rather than
> trying to combine the two. While Cygwin and the Git for Windows
> environment share common ancestry, they have substantial differences
> arising from the fact that Cygwin generally attempts to provide an
> environment that's as close to Unix-like as possible, while Git for
> Windows is aiming for compatibility with native Windows applications.
> Differences in handling paths and return codes are to be expected.
>
> I expect it is possible to use a Cygwin editor with Git for Windows,
> but I don't think it's an expected use case, and I'm not aware of
> anyone else having produced and published documentation of the
> configuration and wrapper scripts I imagine you would need to convert
> between the two interfaces.
>
> Adam
next prev parent reply other threads:[~2021-02-11 15:22 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-02-07 13:24 default editor M Douglas McIlroy
2021-02-07 17:35 ` brian m. carlson
2021-02-07 18:12 ` Junio C Hamano
2021-02-07 18:37 ` Jeff King
2021-02-07 19:09 ` brian m. carlson
2021-02-07 21:57 ` Eric Sunshine
2021-02-08 10:03 ` Adam Dinwoodie
2021-02-11 15:15 ` M Douglas McIlroy [this message]
2021-02-12 6:03 ` Eric Sunshine
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='CAKH6PiXj39+8SQLiJfdDWyg=vmqiNAba=DKffg3adfztWJ0w_Q@mail.gmail.com' \
--to=m.douglas.mcilroy@dartmouth.edu \
--cc=adam@dinwoodie.org \
--cc=git@vger.kernel.org \
--cc=gitster@pobox.com \
--cc=peff@peff.net \
--cc=sandals@crustytoothpaste.net \
--cc=sunshine@sunshineco.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).