zsh-users
 help / color / mirror / code / Atom feed
From: Bart Schaefer <schaefer@brasslantern.com>
To: "Zsh Users' List" <zsh-users@zsh.org>
Subject: Re: tag-order with git refs
Date: Wed, 7 Oct 2015 12:06:16 -0700	[thread overview]
Message-ID: <151007120616.ZM2740@torch.brasslantern.com> (raw)
In-Reply-To: <20151007142421.2ebb2287@pwslap01u.europe.root.pri>

On Oct 7,  2:24pm, Peter Stephenson wrote:
}
} I mean what tag-order is supposed to be for, preferring matches for
} earlier tags if there are any ("shown" isn't the right word except in
} so much as they are shown if you're listing).  If there are matches for
} local heads, I want to see only these, so it doesn't go round the tag
} loop to find other matches.  That's supposed to be fairly
} straightforward to do.

I think this comes down to the way __git_heads_local calls _wanted.  I
compared with a completion where tag-order works and one difference is
that there's nothing in a group named "heads-local" at the time comptags
is called.

Different sets of options are given different descriptions, so they get
broken out in the listing, but they're all put in the -default- group
as far as I can tell.

Maybe this is a bug downstream of _wanted, but instead of
  _wanted heads-local ...
one has to call
  _wanted heads-local:DESCRIPTION:ACTION ...
in order to cause _all_labels to pass a -J option to compadd and thereby
make tag-order work.

Or at least I think that's what's going on, I'll probably shortly be
proved wrong.


  reply	other threads:[~2015-10-07 19:06 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-10-07 11:08 Peter Stephenson
2015-10-07 13:01 ` Mikael Magnusson
2015-10-07 13:24   ` Peter Stephenson
2015-10-07 19:06     ` Bart Schaefer [this message]
2015-10-07 22:22 ` Oliver Kiddle
2015-10-08  3:50   ` Bart Schaefer
2015-10-08  9:39   ` Peter Stephenson

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=151007120616.ZM2740@torch.brasslantern.com \
    --to=schaefer@brasslantern.com \
    --cc=zsh-users@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).