rev-parse: use skip_prefix when parsing options
authorJeff King <redacted>
Wed, 15 Mar 2017 20:05:36 +0000 (16:05 -0400)
committerJunio C Hamano <redacted>
Wed, 15 Mar 2017 21:00:28 +0000 (14:00 -0700)
commitef87cc79dff1fa0d16ad4d67646afeba9ce11a6c
treefe96309569d22a594af9dcdc898adbdf70c69e7c
parente7e07d5a4fcc2a203d9873968ad3e6bd4d7419d7
rev-parse: use skip_prefix when parsing options

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 <redacted>
Signed-off-by: Junio C Hamano <redacted>
builtin/rev-parse.c
git clone https://git.99rst.org/PROJECT