Skip to content

Commit

Permalink
Merge branch 'jk/bash-completion'
Browse files Browse the repository at this point in the history
* jk/bash-completion:
  completion: learn about --man-path
  completion: handle unstuck form of base git options
  • Loading branch information
Junio C Hamano committed Jul 11, 2013
2 parents 6af9840 + 66fb37d commit 04ce893
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
4 changes: 3 additions & 1 deletion contrib/completion/git-completion.bash
Original file line number Diff line number Diff line change
Expand Up @@ -2490,9 +2490,10 @@ __git_main ()
i="${words[c]}"
case "$i" in
--git-dir=*) __git_dir="${i#--git-dir=}" ;;
--git-dir) ((c++)) ; __git_dir="${words[c]}" ;;
--bare) __git_dir="." ;;
--help) command="help"; break ;;
-c) c=$((++c)) ;;
-c|--work-tree|--namespace) ((c++)) ;;
-*) ;;
*) command="$i"; break ;;
esac
Expand All @@ -2510,6 +2511,7 @@ __git_main ()
--exec-path
--exec-path=
--html-path
--man-path
--info-path
--work-tree=
--namespace=
Expand Down
1 change: 1 addition & 0 deletions t/t9902-completion.sh
Original file line number Diff line number Diff line change
Expand Up @@ -365,6 +365,7 @@ test_expect_success 'double dash "git" itself' '
--exec-path Z
--exec-path=
--html-path Z
--man-path Z
--info-path Z
--work-tree=
--namespace=
Expand Down

0 comments on commit 04ce893

Please sign in to comment.