summaryrefslogtreecommitdiff
path: root/RelNotes
diff options
context:
space:
mode:
authorJeff King <peff@peff.net>2017-03-15 20:06:53 (GMT)
committerJunio C Hamano <gitster@pobox.com>2017-03-15 21:01:51 (GMT)
commit9d16ca65bbe45d4a28cbb37c3299b544c81ff2e8 (patch)
tree2b249bc704d46c2df2efedbb2ae5220cf88b31a5 /RelNotes
parentef87cc79dff1fa0d16ad4d67646afeba9ce11a6c (diff)
downloadgit-9d16ca65bbe45d4a28cbb37c3299b544c81ff2e8.zip
git-9d16ca65bbe45d4a28cbb37c3299b544c81ff2e8.tar.gz
git-9d16ca65bbe45d4a28cbb37c3299b544c81ff2e8.tar.bz2
rev-parse: add helper for parsing "--foo/--foo="
We can't just use a bare skip_prefix() for these cases, because we need to match both the "--foo" form and the "--foo=<value>" form (and tell the difference between the two in the caller). We can wrap this in a simple helper which has two obvious callsites, and will gain some more in the next patch. Note that the error output for abbrev-ref changes slightly, as we don't keep our original "arg" pointer. However, the new output should hopefully be more clear: [before] fatal: unknown mode for --abbrev-ref=foo [after] fatal: unknown mode for --abbrev-ref: foo Signed-off-by: Jeff King <peff@peff.net> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'RelNotes')
0 files changed, 0 insertions, 0 deletions