From: Ulrik Sverdrup <ulrik.sverdrup@gmail.com>
To: git@vger.kernel.org
Subject: Subtle git completion hacks with aliases
Date: Fri, 12 Feb 2010 14:40:41 +0100 [thread overview]
Message-ID: <a1b6cb1b1002120540o8ff8f50vec1c7b528d462b8a@mail.gmail.com> (raw)
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
reply other threads:[~2010-02-12 13:40 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
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=a1b6cb1b1002120540o8ff8f50vec1c7b528d462b8a@mail.gmail.com \
--to=ulrik.sverdrup@gmail.com \
--cc=git@vger.kernel.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.
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).