mirror of
https://github.com/git/git.git
synced 2026-04-12 01:40:10 +02:00
Merge branch 'jk/bash-completion'
* jk/bash-completion: completion: learn about --man-path completion: handle unstuck form of base git options
This commit is contained in:
@@ -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
|
||||
@@ -2510,6 +2511,7 @@ __git_main ()
|
||||
--exec-path
|
||||
--exec-path=
|
||||
--html-path
|
||||
--man-path
|
||||
--info-path
|
||||
--work-tree=
|
||||
--namespace=
|
||||
|
||||
@@ -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=
|
||||
|
||||
Reference in New Issue
Block a user