From: Jeff King Date: Wed, 15 Mar 2017 20:05:36 +0000 (-0400) Subject: rev-parse: use skip_prefix when parsing options X-Git-Tag: v2.12.3~13^2~2 X-Git-Url: https://git.lorimer.id.au/gitweb.git/diff_plain/ef87cc79dff1fa0d16ad4d67646afeba9ce11a6c?ds=sidebyside;hp=ef87cc79dff1fa0d16ad4d67646afeba9ce11a6c 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 Signed-off-by: Junio C Hamano ---