Skip to content
Browse files

hack up git-bundle completion for top-level aliases

  • Loading branch information...
1 parent 20eb6f2 commit a59681d37caf78ab69733f4b96eccb25c238a16b @rtomayko committed Feb 21, 2011
Showing with 8 additions and 11 deletions.
  1. +8 −11 git-completion.bash
View
19 git-completion.bash
@@ -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
}

0 comments on commit a59681d

Please sign in to comment.
Something went wrong with that request. Please try again.