zsh-workers
 help / color / mirror / code / Atom feed
From: Axel Beckert <abe@deuxchevaux.org>
To: zsh-workers@zsh.org
Subject: Re: zsh git completion offers different parameters then current prefix
Date: Sat, 2 Aug 2014 21:26:50 +0200	[thread overview]
Message-ID: <20140802192649.GP6176@sym.noone.org> (raw)
In-Reply-To: <20140802190557.GB31932@anubis>

Hi,

On Sat, Aug 02, 2014 at 09:05:57PM +0200, DS wrote:
> Typing in zsh
>
> % git diff --ca<hit TAB>
>
> offers
>
> --cached  -1        -3        -C        -M        -R        -U
> -l        -q        -w                        -0        -2        -B
> -G        -O        -S        -b        -p        -u        -z
>
> so there are completions completely out of the current typed prefix.

I can reproduce this here on Debian with zsh 5.0.5 and grml's zshrc:

→ git diff --ca<Tab>
completing option
--cached      -- show diff between index and named commit
-0            -- omit diff output for unmerged entries
-1            -- diff against "base" version
-2            -- diff against "our branch" version
-3            -- diff against "their branch" version
-B            -- break complete rewrite changes into pairs of given size
-C            -- detect copies as well as renames with given scope
-D            -- omit the preimage for deletes
-G            -- look for differences whose added or removed line matches the given regex
-M            -- Detect renames with given scope
-O            -- output patch in the order of glob-pattern lines in given file
-R            -- do a reverse diff
-S            -- look for differences that add or remove the given string
-U            -- generate diff with given lines of context
-b            -- ignore changes in amount of white space
-l            -- limit number of rename/copy targets to run
-s            -- suppress diff output
-u        -p  -- generate diff in patch format
-w            -- ignore white space when comparing lines
-z            -- use NUL termination on output

		Kind regards, Axel
--
/~\  Plain Text Ribbon Campaign                   | Axel Beckert
\ /  Say No to HTML in E-Mail and News            | abe@deuxchevaux.org  (Mail)
 X   See http://www.nonhtmlmail.org/campaign.html | abe@noone.org (Mail+Jabber)
/ \  I love long mails: http://email.is-not-s.ms/ | http://noone.org/abe/ (Web)


  reply	other threads:[~2014-08-02 19:27 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-08-02 19:05 DS
2014-08-02 19:26 ` Axel Beckert [this message]
2014-08-02 19:34 David Siroky
2014-08-03 14:03 ` m0viefreak

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20140802192649.GP6176@sym.noone.org \
    --to=abe@deuxchevaux.org \
    --cc=zsh-workers@zsh.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.vuxu.org/mirror/zsh/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).