delorie.com/archives/browse.cgi | search |
X-Recipient: | archive-cygwin AT delorie DOT com |
DomainKey-Signature: | a=rsa-sha1; c=nofws; d=sourceware.org; h=list-id |
:list-unsubscribe:list-subscribe:list-archive:list-post | |
:list-help:sender:subject:to:references:from:message-id:date | |
:mime-version:in-reply-to:content-type | |
:content-transfer-encoding; q=dns; s=default; b=xlX41vscDIkDvJC+ | |
BSRlPEfVTAEJPb1aruDPuMvspJKfY2kcWpWR1flFV/GKrFQrQuSK8HP9jsi0+20R | |
UnGgvi1YxoV1OLZimYhWw2L8fDy9GQ3DS9UZ7oU4QrLZqOFl/CkrY4yLlP7luQBF | |
VX98VU/aJwl5oBmVds+pQjzo90M= | |
DKIM-Signature: | v=1; a=rsa-sha1; c=relaxed; d=sourceware.org; h=list-id |
:list-unsubscribe:list-subscribe:list-archive:list-post | |
:list-help:sender:subject:to:references:from:message-id:date | |
:mime-version:in-reply-to:content-type | |
:content-transfer-encoding; s=default; bh=2DvKtwbqwDX3HrZTRgfViT | |
zUBSY=; b=QLdLt0/YYAdv609IgRO3+pPbsL8f5mpfr7CZziysKicnglsYLWTDAK | |
atFbAqzI9JDpRmjVJYr6dIHJM9MVCOu51r6O7c7Djx+wurZKobVvvgXIZCC4sc95 | |
SDRWfpb69O/tuDSn5Od7AxCWc7sHgc6zhe7bS5ECR1aNAGZVsYIDE= | |
Mailing-List: | contact cygwin-help AT cygwin DOT com; run by ezmlm |
List-Id: | <cygwin.cygwin.com> |
List-Subscribe: | <mailto:cygwin-subscribe AT cygwin DOT com> |
List-Archive: | <http://sourceware.org/ml/cygwin/> |
List-Post: | <mailto:cygwin AT cygwin DOT com> |
List-Help: | <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs> |
Sender: | cygwin-owner AT cygwin DOT com |
Mail-Followup-To: | cygwin AT cygwin DOT com |
Delivered-To: | mailing list cygwin AT cygwin DOT com |
Authentication-Results: | sourceware.org; auth=none |
X-Virus-Found: | No |
X-Spam-SWARE-Status: | No, score=4.8 required=5.0 tests=BAYES_50,CYGWIN_OWNER_BODY,RCVD_IN_DNSWL_NONE autolearn=no version=3.3.2 spammy=NPM, bashrc, $var, Eliot |
X-HELO: | resqmta-po-10v.sys.comcast.net |
Subject: | Re: git and absolute Windows-style paths |
To: | cygwin AT cygwin DOT com |
References: | <57169662 DOT 9060503 AT gmail DOT com> <e8b47924c6ff4f07993627dbb26f7066 AT ntmaexbe04 DOT bedford DOT progress DOT com> <5717A3EF DOT 6030407 AT gmail DOT com> <5717A5C6 DOT 5060001 AT cs DOT umass DOT edu> <BLUPR03MB23017F9B3FCB1DEDA3F7734DF6D0 AT BLUPR03MB230 DOT namprd03 DOT prod DOT outlook DOT com> |
From: | Ernie Rael <err AT raelity DOT com> |
Message-ID: | <5717C76F.1040307@raelity.com> |
Date: | Wed, 20 Apr 2016 11:16:15 -0700 |
User-Agent: | Mozilla/5.0 (Windows NT 6.1; WOW64; rv:38.0) Gecko/20100101 Thunderbird/38.7.2 |
MIME-Version: | 1.0 |
In-Reply-To: | <BLUPR03MB23017F9B3FCB1DEDA3F7734DF6D0@BLUPR03MB230.namprd03.prod.outlook.com> |
X-IsSubscribed: | yes |
On 4/20/2016 9:10 AM, Brian Clifton wrote: > I agree completely- > > Faking out git by wrapping it as a function in your .bashrc would be an ideal approach. I was the person championing that PR which got rejected, unfortunately. The NPM folks were recommending to use mingw which *is* supported... but I haven't seen any updates to that project since 2013... and I prefer the approach Cygwin takes :) > > Eliot, I would be all about taking you up on fixing that psuedo-code example I shared earlier. I have a lot to learn about shell scripting and while I am sure I can figure it out, having help would be extremely appreciated :) > > The example I shared in my intro thread: > ##### > function git { > for var in "$@" > do > if [[ $var == *":\\"* ]]; then > $var="$(cygpath $var)" #this doesn't work, but the idea is to do something like this > fi > done > command git "$@" > } > ##### This extract from a bash function, using an array assignment, might be of interest. IFS=$'\n' args=($(cygpath -m -- "$@")) IFS=$' \t\n' gvim "${args[@]}" > ________________________________________ > From: cygwin-owner AT cygwin DOT com <cygwin-owner AT cygwin DOT com> on behalf of Eliot Moss <moss AT cs DOT umass DOT edu> > Sent: Wednesday, April 20, 2016 8:52 AM > To: cygwin AT cygwin DOT com > Subject: Re: git and absolute Windows-style paths > > On 4/20/2016 11:44 AM, silverwind wrote: >> Hey, >> >>> Does it work if you do: >>> >>> git add c:/test/file >> Nope, won't work either. No file is added, exit code 0 is given. >> >> > I can't immediately see what's going wrong, so I'm going to report this upstream. >> >> Thanks. I came upon this issue through npm which is using these Windows paths for certain git >> operations. Unfortunately, The npm team is very reluctant when it comes to merging Cygwin-specific >> patches, so chances of landing a fix on their side are rather slim. >> >> Is there a public repository for the git package used by Cygwin? > I think that tackling this with a script/function is a better approach ... > > Eliot Moss > > -- > 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 > > > -- > 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 > > > -- 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
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |