rev-parse: use skip_prefix when parsing options