Skip to content

Commit

Permalink
bash: remove unnecessary checks for long options with argument
Browse files Browse the repository at this point in the history
__gitcomp takes care of it since 5447aac (bash: fix long option with
argument double completion, 2008-03-05)

Signed-off-by: SZEDER Gábor <szeder@ira.uka.de>
Acked-by: Shawn O. Pearce <spearce@spearce.org>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
  • Loading branch information
SZEDER Gábor authored and Junio C Hamano committed Jan 18, 2009
1 parent 6b89d06 commit 7de931c
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions contrib/completion/git-completion.bash
Original file line number Diff line number Diff line change
Expand Up @@ -643,7 +643,6 @@ _git_branch ()
done

case "${COMP_WORDS[COMP_CWORD]}" in
--*=*) COMPREPLY=() ;;
--*)
__gitcomp "
--color --no-color --verbose --abbrev= --no-abbrev
Expand Down Expand Up @@ -1689,7 +1688,6 @@ _git ()

if [ -z "$command" ]; then
case "${COMP_WORDS[COMP_CWORD]}" in
--*=*) COMPREPLY=() ;;
--*) __gitcomp "
--paginate
--no-pager
Expand Down

0 comments on commit 7de931c

Please sign in to comment.