Mercurial > public > mercurial-scm > hg
diff contrib/bash_completion @ 1308:2073e5a71008
Cleanup of tabs and trailing spaces.
author | Thomas Arendsen Hein <thomas@intevation.de> |
---|---|
date | Wed, 21 Sep 2005 07:56:19 +0200 |
parents | bc1815cf89a7 |
children | db8bebb08f8f |
line wrap: on
line diff
--- a/contrib/bash_completion Tue Sep 20 21:35:51 2005 -0700 +++ b/contrib/bash_completion Wed Sep 21 07:56:19 2005 +0200 @@ -3,10 +3,10 @@ _hg_commands() { local commands="$(hg -v help | sed -e '1,/^list of commands:/d' \ - -e '/^global options:/,$d' \ + -e '/^global options:/,$d' \ -e '/^ [^ ]/!d; s/[,:]//g;')" - - # hide debug commands from users, but complete them if + + # hide debug commands from users, but complete them if # specifically asked for if [[ "$cur" == de* ]]; then commands="$commands debugcheckstate debugstate debugindex" @@ -62,7 +62,7 @@ cur="$2" prev="$3" - # searching for the command + # searching for the command # (first non-option argument that doesn't follow a global option that # receives an argument) for (( i=1; $i<=$COMP_CWORD; i++ )); do @@ -160,7 +160,7 @@ COMPREPLY=(${COMPREPLY[@]:-} $( compgen -f -- "$cur" )) fi ;; - *) + *) COMPREPLY=(${COMPREPLY[@]:-} $( compgen -f -- "$cur" )) ;; esac