name-rev: add support to exclude refs by pattern match