Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: svn completion under Cygwin
- X-seq: zsh-users 13281
- From: Phil Pennock <zsh-workers+phil.pennock@xxxxxxxxxxxx>
- To: Vadim Zeitlin <vz-zsh@xxxxxxxxxxxx>
- Subject: Re: svn completion under Cygwin
- Date: Tue, 23 Sep 2008 08:08:11 -0700
- Cc: zsh-users@xxxxxxxxxx
- Domainkey-signature: a=rsa-sha1; q=dns; c=nofws; s=d200807; d=spodhuis.org; h=Received:Date:From:To:Cc:Subject:Message-ID:Mail-Followup-To:References:MIME-Version:Content-Type:Content-Disposition:In-Reply-To; b=cngu78vJIA3E112kK/unsAyGiT0xb9kMH2Dy26WdcXBRq6t6KvV8R9WqO4QqvOUDlk84gNRy4SmCxLIw6t+LZfOzbFVJixXjTh4lPKEtCG2FAbDvK+NfBS38BN/dsTOgl/5jNg2HltNRU27MfGn1FXH6fM635EZ4TVOKwsCD/cc=;
- In-reply-to: <20080923082844.EF54B8030847@xxxxxxxxxxxxxxxxxx>
- Mail-followup-to: Vadim Zeitlin <vz-zsh@xxxxxxxxxxxx>, zsh-users@xxxxxxxxxx
- Mailing-list: contact zsh-users-help@xxxxxxxxxx; run by ezmlm
- References: <20080922192357.6940f0ae@pws-pc> <20080922225133.06A6B8030847@xxxxxxxxxxxxxxxxxx> <20080922233655.GA48041@xxxxxxxxxxxxxxxxxxxx> <20080923082844.EF54B8030847@xxxxxxxxxxxxxxxxxx>
On 2008-09-23 at 10:28 +0200, Vadim Zeitlin wrote:
> On Mon, 22 Sep 2008 16:36:55 -0700 Phil Pennock <zsh-workers+phil.pennock@xxxxxxxxxxxx> wrote:
> PP> I suspect that we need an _svn_osfixup() filter after the svn command,
> PP> where that would, for the Windows OSes (I forget the values of $OSTYPE
> PP> there) apply changes. But before that can be written, what 'foo\bar'
> PP> maps to needs to be determined, so that we can reverse it.
>
> I agree in theory but in practice it looks rather unlikely that anybody
> uses backslash in their file names...
Well, nobody using Windows, anyway. ;-)
So,
case $OSTYPE in
(...) function _svn_osfixup { tr '\\' '/' } ;;
(*) function _svn_osfixup { cat } ;;
esac
_cache_svn_status[$dir]="$(_call_program files svn status -N $dir | _svn_osfixup)"
where ... should be whatever $OSTYPE is on Windows, or the list of such
types.
Make sense?
-Phil
Messages sorted by:
Reverse Date,
Date,
Thread,
Author