Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: [PATCH 15/16] _git: git rm: make git rm --cached work as intended
- X-seq: zsh-workers 31614
- From: Nikolai Weibull <now@xxxxxxx>
- To: Øystein Walle <oystwa@xxxxxxxxx>
- Subject: Re: [PATCH 15/16] _git: git rm: make git rm --cached work as intended
- Date: Tue, 30 Jul 2013 16:37:13 +0200
- Cc: zsh-workers@xxxxxxx, m0viefreak.cm@xxxxxxxxxxxxxx
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:sender:in-reply-to:references:date :x-google-sender-auth:message-id:subject:from:to:cc:content-type :content-transfer-encoding; bh=DoFaIgAadmSxAploDYX+RfP4u0JxoM/uUWj3hbHs3vk=; b=ZUTSBq/KgfgKDuzbgT4k/vvqg7v/3YfoztINjANqJQZ1GklawuCHZUuxk7upVpZLR5 n36M8jicN9eHXqFeLi6tCTT4Jkg8+Ban6CJTOHWftDHYgM0k8k2rnVV37vRAaxfCBzGw Mz8FLuXwqlFfu94EHAAsxfOcQ4Je10YExfJ8of+5LPL+e+k0h/sqUfZq9a6imroyvfk5 NJFbQTSP/VjUagVezrHzOg6WkTdYpV9eP+poOh2xA08G7KGYHK3/TZUc3p6djyTm7Wtn 5VL3CJ+EFr5a9HyzZCHNCqNIk3J7e8JxfXdeGn3gMicUH0CQZeobtYGVgDW85Tw4oz1O wg/g==
- In-reply-to: <3debebad8c56f7f8ad681b7c0b4d226e33e5e011.1375006129.git.oystwa@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: <cover.1375006129.git.oystwa@gmail.com> <3debebad8c56f7f8ad681b7c0b4d226e33e5e011.1375006129.git.oystwa@gmail.com>
- Sender: nikolai.weibull@xxxxxxxxx
On Sun, Jul 28, 2013 at 6:22 PM, Øystein Walle <oystwa@xxxxxxxxx> wrote:
> From: m0viefreak <m0viefreak.cm@xxxxxxxxxxxxxx>
>
> While limiting the completion to __git_changed-in-index_files
> makes perfect sense for "git diff", it is wrong to use for
> "git rm", because it prevents it from completing files present in
> HEAD. Giving --cached to git rm is supposed to
> "just remove it from the index, keep the working tree copy"
> and is in no way related to the file needing to be
> modified in the index in the first place.
If I understand --cached, it’s exactly like you described, and if you
specify --cached, you only want files actually modified in the index
to be completed. I may be wrong, but please clarify, as you seem to
be stating a tautology.
Messages sorted by:
Reverse Date,
Date,
Thread,
Author