Code

parse-options: remove PARSE_OPT_NEGHELP
authorRené Scharfe <rene.scharfe@lsrfire.ath.cx>
Tue, 28 Feb 2012 19:06:09 +0000 (20:06 +0100)
committerJunio C Hamano <gitster@pobox.com>
Tue, 28 Feb 2012 19:48:11 +0000 (11:48 -0800)
commitcbb08c2e0b41ab162838aa1e83b959bac91151e2
treeb762ff44c1e2a83fe44ba2fc9cb174222efd8cc2
parent0f1930c58754a821bd51087ca4676e6a69cd4d2b
parse-options: remove PARSE_OPT_NEGHELP

PARSE_OPT_NEGHELP is confusing because short options defined with that
flag do the opposite of what the helptext says. It is also not needed
anymore now that options starting with no- can be negated by removing
that prefix. Convert its only two users to OPT_NEGBIT() and OPT_BOOL()
and then remove support for PARSE_OPT_NEGHELP.

Signed-off-by: Rene Scharfe <rene.scharfe@lsrfire.ath.cx>
Acked-by: Jeff King <peff@peff.net>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
builtin/fast-export.c
builtin/grep.c
parse-options.c
parse-options.h