Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: git checkout improvement
- X-seq: zsh-workers 25496
- From: "Mikael Magnusson" <mikachu@xxxxxxxxx>
- To: zsh-workers@xxxxxxxxxx
- Subject: Re: git checkout improvement
- Date: Thu, 21 Aug 2008 04:18:05 +0200
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to :subject:in-reply-to:mime-version:content-type :content-transfer-encoding:content-disposition:references; bh=FrMlkGzoiPQJ9hP658NFMnP1EIXIR1G+rETsII0GMaY=; b=xV4bmjqfODGqwqC4XTiXphO0KGF1lQK2MNYvSEx5n+vjvDQVZ5SWr2HDfZXU2FpAhj 0Pwidl9PMCvajUzj7Y3Ui8usGkftH1fF50ke+TcwGN97ccJxqO4BAg/kRdMJTfAFyduM e/Ne6UHos/S2OpbN4m8YU02kCVuno5QWTjLJA=
- Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:in-reply-to:mime-version :content-type:content-transfer-encoding:content-disposition :references; b=s3dBrXfAgaM7H1VRwfPAC49WntQdZoC4MBLGx1VHpAlTaj7WcrFoExU1VFC/CJ/tHO MlUY7/qB65Ov+aOmdRtHLJSv94/x3PhqP470gN9p+kvIoThPq8j2cHCTn4zhS3FFyj/a 0NjYn50h8uPkAPjbhAVeWW5YUzlVkLMfY1Yn4=
- In-reply-to: <20080821005259.GA21325@xxxxxxxx>
- Mailing-list: contact zsh-workers-help@xxxxxxxxxx; run by ezmlm
- References: <20080821000948.GA20166@xxxxxxxx> <237967ef0808201720x594dae53x215b078420b1ccb6@xxxxxxxxxxxxxx> <20080821005259.GA21325@xxxxxxxx>
2008/8/21 Clint Adams <clint@xxxxxxx>:
> On Thu, Aug 21, 2008 at 02:20:49AM +0200, Mikael Magnusson wrote:
>> I also noticed completing files from the index doesn't work as well as
>> completing files from a given tree... eg, If you type
>> git checkout HEAD gi<tab>
>> you get git.c, but if you
>> git checkout -- gi<tab>
>> you get nothing. However,
>> git checkout -- <tab>
>> lists all the files, and lets you cycle through them until you reach git.c
>> It uses __git_cached_files for that case, but some other places that call
>> that work just fine with something already typed. You got any idea?
>
> I am getting confused here. Can you use -- when there's a tree-ish on
> the line?
Yes. All of these are valid commands:
git checkout git.c
git checkout HEAD git.c
git checkout -- git.c
git checkout HEAD -- git.c
--
Mikael Magnusson
Messages sorted by:
Reverse Date,
Date,
Thread,
Author