Skip to content
This repository has been archived by the owner on Nov 9, 2017. It is now read-only.

Commit

Permalink
hack up git-bundle completion for top-level aliases
Browse files Browse the repository at this point in the history
  • Loading branch information
rtomayko committed Feb 21, 2011
1 parent 20eb6f2 commit a59681d
Showing 1 changed file with 8 additions and 11 deletions.
19 changes: 8 additions & 11 deletions git-completion.bash
Expand Up @@ -962,20 +962,17 @@ _git_branch ()

_git_bundle ()
{
local cmd="${COMP_WORDS[2]}"
case "$COMP_CWORD" in
2)
local cmd="${COMP_WORDS[1]}"

case "${COMP_WORDS[COMP_CWORD-1]}" in
bundle)
__gitcomp "create list-heads verify unbundle"
;;
3)
# looking for a file
create)
__git_complete_revlist
;;
*)
case "$cmd" in
create)
__git_complete_revlist
;;
esac
list-heads|verify|unbundle|*)
# looking for a file
;;
esac
}
Expand Down

0 comments on commit a59681d

Please sign in to comment.