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

if [[ -n "$compconfig[_cvs_disable_stat]" ]] ||
  ! { zmodload -e stat || zmodload stat }; then
  _cvs_extract_file_entries
  return
fi

local ents pats
ents=(${${${${(M)rawentries:#/*}#/}/\\/[^\\/]#\\///}%/[^/]#/[^/]#})
pats=(${${${(f)"$(LANG=C builtin stat -gn +mtime -F '%a %b %e %T %Y' ${pref}*(D))"}##*/}/ //})
eval 'ents=(${ents:#('${(j:|:)${(@)pats:q}}')})'
entries=($entries ${ents%%/*})