Minor cvs completion change.

This commit is contained in:
ianmacd 2006-02-23 23:46:30 +00:00
parent 153ed8d3b7
commit 9fc175c038

View File

@ -1,6 +1,6 @@
# bash_completion - programmable completion functions for bash 3.0 # bash_completion - programmable completion functions for bash 3.0
# #
# $Id: bash_completion,v 1.838 2006/02/24 00:25:33 ianmacd Exp $ # $Id: bash_completion,v 1.839 2006/02/24 00:46:30 ianmacd Exp $
# #
# Copyright (C) Ian Macdonald <ian@caliban.org> # Copyright (C) Ian Macdonald <ian@caliban.org>
# #
@ -1623,9 +1623,9 @@ _cvs()
# way found so far, but other changes # way found so far, but other changes
# (something other than changed/removed/new) # (something other than changed/removed/new)
# may be missing # may be missing
changed=( $( cvs diff --brief 2>&1 | \ changed=( $( cvs -q diff --brief 2>&1 | \
sed -ne 's/^Files [^ ]* and \([^ ]*\) differ$/\1/p' ) ) sed -ne 's/^Files [^ ]* and \([^ ]*\) differ$/\1/p' ) )
newremoved=( $( cvs diff --brief 2>&1 | \ newremoved=( $( cvs -q diff --brief 2>&1 | \
sed -ne 's/^cvs diff: \([^ ]*\) .*, no comparison available$/\1/p' ) ) sed -ne 's/^cvs diff: \([^ ]*\) .*, no comparison available$/\1/p' ) )
COMPREPLY=( $( compgen -W '${changed[@]:-} \ COMPREPLY=( $( compgen -W '${changed[@]:-} \
${newremoved[@]:-}' -- $cur ) ) ${newremoved[@]:-}' -- $cur ) )