Mercurial > public > mercurial-scm > hg-stable
diff contrib/bash_completion @ 5081:ea7b982b6c08
Remove trailing spaces
author | Thomas Arendsen Hein <thomas@intevation.de> |
---|---|
date | Tue, 07 Aug 2007 10:24:33 +0200 |
parents | 04d919cdf263 |
children | bb417470d62a |
line wrap: on
line diff
--- a/contrib/bash_completion Mon Aug 06 20:25:50 2007 +0200 +++ b/contrib/bash_completion Tue Aug 07 10:24:33 2007 +0200 @@ -28,7 +28,7 @@ # cat ~/.patchbomb-$1 # fi # } -# +# # # Writing completion functions for additional commands: # @@ -50,7 +50,7 @@ # an argument (e.g. '--cwd|-R|--repository') # - $canonical - 1 if we canonicalized $cmd before calling the function # 0 otherwise -# +# shopt -s extglob @@ -425,7 +425,7 @@ done if [ -z "$subcmd" ] || [ $COMP_CWORD -eq $i ] || [ "$subcmd" = help ]; then - COMPREPLY=(${COMPREPLY[@]:-} + COMPREPLY=(${COMPREPLY[@]:-} $(compgen -W 'bad good help init next reset' -- "$cur")) return fi @@ -445,7 +445,7 @@ { case "$prev" in -c|--cc|-t|--to|-f|--from|--bcc) - # we need an e-mail address. let the user provide a function + # we need an e-mail address. let the user provide a function # to get them if [ "$(type -t _hg_emails)" = function ]; then local arg=to