[PATCH] git bash completion handles alias options
- From
- Jerome Reybert <jreybert@gmail.com>
- Date
- Aug 9, 2012, 20:52 UTC
- Message-ID
- <1344545544-8538-1-git-send-email-jreybert@gmail.com>
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