summary refs log tree commit diff
path: root/Completion/Cvs/_cvs_files_removed
blob: d5b9252f9ce36e57a5ba17f02fc430cb15826c6b (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#autoload

local qpref pref entries
_cvs_setup_prefix
if [[ -d ${pref}CVS ]]; then
  _cvs_setup_allentries
  setopt localoptions unset
  local omit
  omit=(${pref}*(D:t))
  eval 'entries=(${entries:#('${(j:|:)${(@)omit:q}}')})'
  compadd "$@" -P "$qpref" - ${entries:q} ||
  _cvs_directories "$@"
else
  _files "$@"
fi