Remove deprecated OPTION_BOOLEAN for parsing arguments
commit4741edd549decfccc016fa4775b349fe94fdf4e5
authorStefan Beller <stefanbeller@googlemail.com>
Sat, 3 Aug 2013 11:51:18 +0000 (3 13:51 +0200)
committerJunio C Hamano <gitster@pobox.com>
Mon, 5 Aug 2013 18:32:17 +0000 (5 11:32 -0700)
treefc5bfb57bf7065e7ca918dc45265840f54c7c18c
parente6b722db099f435f21ce72b18f0d61dc3c778f1f
Remove deprecated OPTION_BOOLEAN for parsing arguments

As of b04ba2bb4 OPTION_BOOLEAN was deprecated.
This commit removes all occurrences of OPTION_BOOLEAN.
In b04ba2bb4 Junio suggested to replace it with either
OPTION_SET_INT or OPTION_COUNTUP instead. However a pattern, which
occurred often with the OPTION_BOOLEAN was a hidden boolean parameter.
So I defined OPT_HIDDEN_BOOL as an additional possible parse option
in parse-options.h to make life easy.

The OPT_HIDDEN_BOOL was used in checkout, clone, commit, show-ref.
The only exception, where there was need to fiddle with OPTION_SET_INT
was log and notes. However in these two files there is also a pattern,
so we could think of introducing OPT_NONEG_BOOL.

Signed-off-by: Stefan Beller <stefanbeller@googlemail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
builtin/checkout.c
builtin/clone.c
builtin/commit.c
builtin/log.c
builtin/notes.c
builtin/show-ref.c
parse-options.h