]> git.ipfire.org Git - thirdparty/git.git/commit - parse-options.h
parse-options: remove OPT_BOOLEAN
authorNguyễn Thái Ngọc Duy <pclouds@gmail.com>
Sat, 7 Dec 2013 05:02:53 +0000 (12:02 +0700)
committerJunio C Hamano <gitster@pobox.com>
Mon, 9 Dec 2013 19:24:16 +0000 (11:24 -0800)
commit212c0a6ff2993530a1dadee9dfbbce9dc350b1d1
treeb80c1cd06e92f72b375de2f90e55f4d9dea51965
parentd2446dfd7f3b3f8948142cfb07a0270e2497d93f
parse-options: remove OPT_BOOLEAN

After a86a8b9 (sb/parseopt-boolean-removal), the deprecated
OPT_BOOLEAN is not used anywhere except by OPT__* macros. Kill
OPT_BOOLEAN and make OPT__* use OPT_COUNTUP directly instead. This
should stop OPT_BOOLEAN from entering the tree again in new patches.

OPT__DRY_RUN() is converted to use OPT_BOOL though because it does not
make sense to increase the level of dryness. All OPT__DRY_RUN call
sites have been checked and they look safe for OPT_BOOL.

Signed-off-by: Nguyễn Thái Ngọc Duy <pclouds@gmail.com>
Reviewed-by: Jonathan Nieder <jrnieder@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
parse-options.h