git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Subtle git completion hacks with aliases
@ 2010-02-12 13:40 Ulrik Sverdrup
  0 siblings, 0 replies; only message in thread
From: Ulrik Sverdrup @ 2010-02-12 13:40 UTC (permalink / raw)
  To: git

Relying on git refusing to use aliases that shadow git commands (and
rightly so), but the git completion script taking them at face value,
we can customize the completion of plumbing and custom scripts.

[alias]
        # Make this plumbing command autocomplete
        count-objects =
        # Make this custom shell script (git-unmerged)  autocomplete
arguments as branches, not paths
        unmerged = log

Given the firm beliefs in the aliases-shadowing-commands question, I
think the above should be pretty safe.

Ulrik

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2010-02-12 13:40 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-02-12 13:40 Subtle git completion hacks with aliases Ulrik Sverdrup

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).