Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: Updated _git completion (not attached)
- X-seq: zsh-workers 28816
- From: Wayne Davison <wayned@xxxxxxxxxxxxxxxxxxxxx>
- To: Simon Ruderich <simon@xxxxxxxxxxxx>
- Subject: Re: Updated _git completion (not attached)
- Date: Mon, 28 Feb 2011 08:33:35 -0800
- Cc: 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; bh=BO2kqEPMKIKm6xXzuk5Ff83uOt7AzhTR/xfBZq4utlg=; b=FXtl+qU+0+uaMGOOnVEu8Z5qt+NKGLq45V70aPHk1L8Lw6dyWc7mECKmSsc3C3btL8 pnXoK9j3yZ++zJcvqw2KKMiSr4hZEXC8YgZli56vOnJKjdWwjqQjV4vL9gDVNj9PcuNi LZ9LA0Wv+ZY81UA2xDRp69B/dSD6lUTIQKMRs=
- 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; b=Q7cL9s92LfbVcZ/xVhjlge1a4BRBLLSMhfFyRE71iICfZ0pnOW6/H7xLjkR6Zi8bji FZw1ovOyY59mX5ayhjhzijLwt97tmJFByhVIFo2XMKbOreAb9ooN5q9qaHc6L1DqEIVK QC0CtAp90htibWGJIbcTunLBz7f/ApQaqUxxw=
- In-reply-to: <20110228135851.GA23157@ruderich.org>
- 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>
- Sender: 4wayned@xxxxxxxxx
>
> 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.
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).
..wayne..
Messages sorted by:
Reverse Date,
Date,
Thread,
Author