name-rev: introduce the --refs=<pattern> option