This is the mail archive of the
cygwin
mailing list for the Cygwin project.
Re: introduction, fix for npm w.r.t. git, and questions
- From: Adam Dinwoodie <adam at dinwoodie dot org>
- To: cygwin at cygwin dot com
- Date: Wed, 20 Apr 2016 23:23:13 +0100
- Subject: Re: introduction, fix for npm w.r.t. git, and questions
- Authentication-results: sourceware.org; auth=none
- References: <BLUPR03MB230DECD3A735AF3CB2225CBDF6D0 at BLUPR03MB230 dot namprd03 dot prod dot outlook dot com> <20160420185011 dot GJ2345 at dinwoodie dot org> <5717D8D9 dot 2030600 at gmail dot com> <20160420205904 dot GK2345 at dinwoodie dot org> <5717F1EF dot 2030705 at gmail dot com>
On Wed, Apr 20, 2016 at 11:17:35PM +0200, silverwind wrote:
> On 4/20/16 10:59 PM, Adam Dinwoodie wrote:
> >native Windows and Cygwin. It's been a while since I tried it, but I
> >_think_ you can generally use Cygwin Git and Windows Git on the same
> >working copy without any difficulties, at least if you avoid the common
> >pain points like line ending rewriting and symlinks.
>
> I've tried the native Windows version of git while debugging this,
> and yes, it accepts Windows-style paths correctly.
>
> The deal-breaking issue with it for me was that it trashed the file
> permissions under Cygwin. Every file it touched (be it through
> clone, add or any other operation) was set to mode 777, so `git
> config core.fileMode false` would've been necessary to stay sane,
> but that of course comes with the drawback of not being able to
> change file modes.
Yes, that's definitely a catch; Windows seems to like to have executable
flags on more-or-less everything.
You can, if necessary, change filemodes with `git update-index
--chmod=+x <file>` (or `--chmod=-x` to remove the executable flag);
that'll stage the change to be committed when you run `git commit`,
without touching the permissions on the actual checked out files.
You're still not changing the file modes on the files you have checked
out, but you're at least making the change for anyone else who uses your
commits.
--
Problem reports: http://cygwin.com/problems.html
FAQ: http://cygwin.com/faq/
Documentation: http://cygwin.com/docs.html
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
- References:
- introduction, fix for npm w.r.t. git, and questions
- Re: introduction, fix for npm w.r.t. git, and questions
- Re: introduction, fix for npm w.r.t. git, and questions
- Re: introduction, fix for npm w.r.t. git, and questions
- Re: introduction, fix for npm w.r.t. git, and questions