- improve handling of 'cvs export' (patch by Liviu Daia <Liviu.Daia@imar.ro>)
This commit is contained in:
parent
22626148d1
commit
c58e759e41
@ -1,6 +1,6 @@
|
|||||||
# bash_completion - some programmable completion functions for bash 2.05b
|
# bash_completion - some programmable completion functions for bash 2.05b
|
||||||
#
|
#
|
||||||
# $Id: bash_completion,v 1.513 2003/01/17 10:01:29 ianmacd Exp $
|
# $Id: bash_completion,v 1.514 2003/01/17 10:09:59 ianmacd Exp $
|
||||||
#
|
#
|
||||||
# Copyright (C) Ian Macdonald <ian@caliban.org>
|
# Copyright (C) Ian Macdonald <ian@caliban.org>
|
||||||
#
|
#
|
||||||
@ -1034,7 +1034,10 @@ _cvs()
|
|||||||
@(commit|ci))
|
@(commit|ci))
|
||||||
mode=commit
|
mode=commit
|
||||||
;;
|
;;
|
||||||
@(annotate|diff|@(ex|im)port|history|release|status|update|edit|unedit))
|
@(ex?(p?(ort))))
|
||||||
|
mode=export
|
||||||
|
;;
|
||||||
|
@(annotate|diff|history|import|release|status|update|?(un)edit))
|
||||||
mode=$i
|
mode=$i
|
||||||
;;
|
;;
|
||||||
?(r)log)
|
?(r)log)
|
||||||
@ -1124,6 +1127,16 @@ _cvs()
|
|||||||
$cur ) )
|
$cur ) )
|
||||||
fi
|
fi
|
||||||
;;
|
;;
|
||||||
|
export)
|
||||||
|
if [[ "$cur" != -* ]]; then
|
||||||
|
[ -z "$cvsroot" ] && cvsroot=$CVSROOT
|
||||||
|
COMPREPLY=( $( cvs -d "$cvsroot" co -c | awk '{print $1}' ) )
|
||||||
|
COMPREPLY=( $( compgen -W '${COMPREPLY[@]}' -- $cur ) )
|
||||||
|
else
|
||||||
|
COMPREPLY=( $( compgen -W '-N -f -l -R -n \
|
||||||
|
-r -D -d -k' -- $cur ) )
|
||||||
|
fi
|
||||||
|
;;
|
||||||
diff)
|
diff)
|
||||||
if [[ "$cur" == -* ]]; then
|
if [[ "$cur" == -* ]]; then
|
||||||
_longopt diff
|
_longopt diff
|
||||||
|
Loading…
x
Reference in New Issue
Block a user