git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Jerome Reybert <jreybert@gmail.com>
To: git@vger.kernel.org
Cc: Jerome Reybert <jreybert@gmail.com>
Subject: [PATCH] git bash completion handles alias options
Date: Thu,  9 Aug 2012 22:52:23 +0200	[thread overview]
Message-ID: <1344545544-8538-1-git-send-email-jreybert@gmail.com> (raw)

git bash completion now handles git alias options. It means that options which
change the completion behavior for complete commands will also change the
behavior of completion for aliased command.  

bash completion now handle git alias options. I did a use case in another
commit: a checkout alias which only complete local branches, ie. only 'refs'
ones, not 'remotes'. With this new alias completion, I added an option to do
that in checkout command and hacked _git_checkout complete function.

Best,
  Jerome

Jerome Reybert (1):
  git bash completion handles alias options

 contrib/completion/git-completion.bash | 31 +++++++++++++++++++++++++------
 1 file changed, 25 insertions(+), 6 deletions(-)

-- 
1.7.12.rc0.91.gf4edd99

             reply	other threads:[~2012-08-09 20:52 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-08-09 20:52 Jerome Reybert [this message]
2012-08-09 20:52 ` [PATCH] git bash completion handles alias options Jerome Reybert

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=1344545544-8538-1-git-send-email-jreybert@gmail.com \
    --to=jreybert@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).