rev-parse: use skip_prefix when parsing options
authorJeff King <peff@peff.net>
Wed, 15 Mar 2017 20:05:36 +0000 (16:05 -0400)
committerJunio C Hamano <gitster@pobox.com>
Wed, 15 Mar 2017 21:00:28 +0000 (14:00 -0700)
Using skip_prefix lets us avoid manually-counted offsets
into the argument string. This patch converts the simple and
obvious cases.

Signed-off-by: Jeff King <peff@peff.net>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
No differences found