Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: Updated _git completion (not attached)
- X-seq: zsh-workers 28817
- From: Nikolai Weibull <now@xxxxxxxx>
- To: Wayne Davison <wayned@xxxxxxxxxxxxxxxxxxxxx>
- Subject: Re: Updated _git completion (not attached)
- Date: Mon, 28 Feb 2011 18:07:15 +0100
- Cc: Simon Ruderich <simon@xxxxxxxxxxxx>, Zsh Workers <zsh-workers@xxxxxxx>
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:sender:in-reply-to:references:date :x-google-sender-auth:message-id:subject:from:to:cc:content-type :content-transfer-encoding; bh=0Espf26YoAf320egGoZvzbHPfhqBNhc3nEtFNGNb9UU=; b=ZHRtduQb5bCFDJ5x3fkYie7XOZdfJRw5EXmn06b6WK9aP4rnDTyAR4ZW4+MQJ82Txv vIBMSYPM1pXv71qSIyJW6pyOzz+KdbFZjvFJ32mnfo9A/y0kQGPMg0crSjY+jw/6ubsx zlnTz38Hze5xSxebxvObRAYD4O6ku1bs63lZI=
- Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:sender:in-reply-to:references:date :x-google-sender-auth:message-id:subject:from:to:cc:content-type :content-transfer-encoding; b=N7a4oV29H/DnQUzkhhMdhB4e7HaXDEKJWN0jHhu/QedcbKBseB0A8as5bdIvlwfLIl QWNkQoh68mwfsgbrqV20SgJg5wiF3IX9quQs6y7pPLa4B8aqgJct17KSwB3Ub29hI8Sg CAXl0tVMrHgLoOqqV+RcgPVPimR+nhUXE7brY=
- In-reply-to: <AANLkTinfE4x-qg=5BMX=OLTv53i2aFFAKSAZ-hcJTbY2@mail.gmail.com>
- List-help: <mailto:zsh-workers-help@zsh.org>
- List-id: Zsh Workers List <zsh-workers.zsh.org>
- List-post: <mailto:zsh-workers@zsh.org>
- Mailing-list: contact zsh-workers-help@xxxxxxx; run by ezmlm
- References: <20110219133951.GA32368@ruderich.org> <AANLkTim_nZMNsvpCzF1Ezg0O_6xcuC5gGHrJzB0+4_Mm@mail.gmail.com> <20110228135851.GA23157@ruderich.org> <AANLkTinfE4x-qg=5BMX=OLTv53i2aFFAKSAZ-hcJTbY2@mail.gmail.com>
- Sender: nikolai.weibull@xxxxxxxxx
On Mon, Feb 28, 2011 at 17:33, Wayne Davison
<wayned@xxxxxxxxxxxxxxxxxxxxx> wrote:
>>
>> On Sat, Feb 19, 2011 at 02:39:57PM +0100, Simon Ruderich wrote:
>> - It seems like git checkout doesn't list only modified files but all
>> files.
> One thing to keep in mind is that it is right for it to list all
> (known-to-git) files after a tag or hash, since the user may want to change
> the file to a prior state. It is only the default "git checkout FILE" that
> only really has meaning for changed files.
> And, I had thought for sure that
> git didn't allow filenames after git checkout -f (and indeed, the current
> completion code doesn't complete files after it), but in my testing of git
> 1.7.1, it accepted files to force w/o complaint.
If no tree-ish is given it uses HEAD as the tree-ish to look for files
in. Perhaps it should only list files modified between HEAD and the
working tree when the tree-ish is HEAD.
> For instance, "git checkout -f zsh-4.3.9 ChangeLog" changes to that version,
> and if the file is tweaked and followed by "git checkout -f ChangeLog", the
> zsh-4.3.9 content is restored. In both cases it seems to me that the -f was
> superfluous, but allowed (since the commands do the same thing w/o the -f).
I don’t see how -f should change anything in the completion.
Messages sorted by:
Reverse Date,
Date,
Thread,
Author