Browse Source

bash: Add more long options to be completed with "git --<TAB>"

Add the following long options to be completed with command "git":

	--paginate
	--work-tree=
	--help

Signed-off-by: Teemu Likonen <tlikonen@iki.fi>
Signed-off-by: Shawn O. Pearce <spearce@spearce.org>
maint
Teemu Likonen 17 years ago committed by Shawn O. Pearce
parent
commit
ce5a2c956f
  1. 3
      contrib/completion/git-completion.bash

3
contrib/completion/git-completion.bash

@ -1271,11 +1271,14 @@ _git ()
case "${COMP_WORDS[COMP_CWORD]}" in case "${COMP_WORDS[COMP_CWORD]}" in
--*=*) COMPREPLY=() ;; --*=*) COMPREPLY=() ;;
--*) __gitcomp " --*) __gitcomp "
--paginate
--no-pager --no-pager
--git-dir= --git-dir=
--bare --bare
--version --version
--exec-path --exec-path
--work-tree=
--help
" "
;; ;;
*) __gitcomp "$(__git_commands) $(__git_aliases)" ;; *) __gitcomp "$(__git_commands) $(__git_aliases)" ;;

Loading…
Cancel
Save