[Bash-completion-commits] [SCM] bash-completion branch, master, updated. 1.3-313-gc36b68c

Ville Skyttä ville.skytta at iki.fi
Tue May 24 15:55:12 UTC 2011


The following commit has been merged in the master branch:
commit c36b68c4c9a51451ac76b142f0bcfdae6665bf7f
Author: Ville Skyttä <ville.skytta at iki.fi>
Date:   Tue May 24 08:41:00 2011 +0300

    cvs: Indentation fixes.

diff --git a/completions/cvs b/completions/cvs
index 9570f85..d874a37 100644
--- a/completions/cvs
+++ b/completions/cvs
@@ -153,8 +153,8 @@ _cvs()
                 if [[ $cword -gt 1 && -r ${prefix:-}CVS/Entries ]]; then
                     get_entries
                     [ -z "$cur" ] && \
-                    files=$( command ls -Ad !(CVS) ) || \
-                    files=$( command ls -d ${cur}* 2>/dev/null )
+                        files=$( command ls -Ad !(CVS) ) || \
+                        files=$( command ls -d ${cur}* 2>/dev/null )
                     for i in "${entries[@]}"; do
                         files=( ${files[@]/#$i//} )
                     done
@@ -235,16 +235,15 @@ _cvs()
                 # complete on remotely checked-out files (requires
                 # passwordless access to the remote repository
                 if [ -n "${COMP_CVS_REMOTE:-}" ]; then
-                    # this is the least computationally intensive
-                # way found so far, but other changes
-                # (something other than changed/removed/new)
-                # may be missing
-                changed=( $( cvs -q diff --brief 2>&1 | \
-                sed -ne 's/^Files [^ ]* and \([^ ]*\) differ$/\1/p' ) )
-                newremoved=( $( cvs -q diff --brief 2>&1 | \
-                sed -ne 's/^cvs diff: \([^ ]*\) .*, no comparison available$/\1/p' ) )
-                COMPREPLY=( $( compgen -W '${changed[@]:-} \
-                           ${newremoved[@]:-}' -- "$cur" ) )
+                    # this is the least computationally intensive way found so
+                    # far, but other changes (something other than
+                    # changed/removed/new) may be missing
+                    changed=( $( cvs -q diff --brief 2>&1 | \
+                        sed -ne 's/^Files [^ ]* and \([^ ]*\) differ$/\1/p' ) )
+                    newremoved=( $( cvs -q diff --brief 2>&1 | \
+                        sed -ne 's/^cvs diff: \([^ ]*\) .*, no comparison available$/\1/p' ) )
+                    COMPREPLY=( $( compgen -W '${changed[@]:-} \
+                        ${newremoved[@]:-}' -- "$cur" ) )
                 else
                     COMPREPLY=( $(compgen -o default -- "$cur") )
                 fi

-- 
bash-completion



More information about the Bash-completion-commits mailing list