2 # Usage: list [[!]tag-expr ...]
3 # List all issues. If tag-expr is specified, then include issues only
4 # with at least one tag satisfying tag-expr. tag-expr is an expression
5 # tag is compared with. If "!" is prepended to tag-expr, then it excludes
16 [[ ${our[1]} = "!" ]] || continue
17 for their ($tagsTheir) {
18 if [[ $their =~ ${our[2,-1]} ]]; then
24 [[ ${our[1]} != "!" ]] || continue
26 for their ($tagsTheir) {
27 if [[ $their =~ $our ]]; then
32 [[ $satisfied -eq 1 ]] || return 1
36 for issue (issues/**/created) {
38 issue=${issue#issues/}
40 tagsTheir=(`$root/tag-list $issue`)
41 tagsSatisfied $tagsTheir || continue
43 print -n `cat issues/$issue/created`\\t$issue\\t
46 supercat -e grn,"^.{19}" -e cya," [^ ]*$" -e red," .*\/"