1
0
Fork 0
mirror of git://git.code.sf.net/p/zsh/code synced 2025-01-01 17:24:50 +01:00
zsh/Completion/Cvs/_cvs_extract_modifiedfile_entries
1999-08-26 11:07:42 +00:00

13 lines
407 B
Text

#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%%/*})