author | René Scharfe <rene.scharfe@lsrfire.ath.cx> | |
Tue, 28 Feb 2012 19:06:09 +0000 (20:06 +0100) | ||
committer | Junio C Hamano <gitster@pobox.com> | |
Tue, 28 Feb 2012 19:48:11 +0000 (11:48 -0800) | ||
commit | cbb08c2e0b41ab162838aa1e83b959bac91151e2 | |
tree | b762ff44c1e2a83fe44ba2fc9cb174222efd8cc2 | tree | snapshot |
parent | 0f1930c58754a821bd51087ca4676e6a69cd4d2b | commit | diff |
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>
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 | diff | blob | history | |
builtin/grep.c | diff | blob | history | |
parse-options.c | diff | blob | history | |
parse-options.h | diff | blob | history |