rev-parse: simplify parsing of ref options