Skip to content

Commit

Permalink
bash: Add more long options to be completed with "git --<TAB>"
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Teemu Likonen authored and Shawn O. Pearce committed Mar 11, 2008
1 parent 51fe120 commit ce5a2c9
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions contrib/completion/git-completion.bash
Original file line number Diff line number Diff line change
Expand Up @@ -1271,11 +1271,14 @@ _git ()
case "${COMP_WORDS[COMP_CWORD]}" in
--*=*) COMPREPLY=() ;;
--*) __gitcomp "
--paginate
--no-pager
--git-dir=
--bare
--version
--exec-path
--work-tree=
--help
"
;;
*) __gitcomp "$(__git_commands) $(__git_aliases)" ;;
Expand Down

0 comments on commit ce5a2c9

Please sign in to comment.