revision.c: stricter parsing of '--no-{min,max}-parents'
commit9ada7aee198c3644604eac1ff7cc50284b48d85f
authorSZEDER Gábor <szeder.dev@gmail.com>
Fri, 9 Jun 2017 18:17:30 +0000 (9 20:17 +0200)
committerJunio C Hamano <gitster@pobox.com>
Mon, 12 Jun 2017 20:39:43 +0000 (12 13:39 -0700)
tree1e3c317466555b5e75a77fe3d766b98731f32362
parente35b6ac56f6582f85319ebc86d4a9b42ca5a21cb
revision.c: stricter parsing of '--no-{min,max}-parents'

These two options are parsed using starts_with(), allowing things like
'git log --no-min-parents-foobarbaz' to succeed.

Use strcmp() instead.

Signed-off-by: SZEDER Gábor <szeder.dev@gmail.com>
Reviewed-by: Jeff King <peff@peff.net>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
revision.c