Skip to content
  • Stefan Beller's avatar
    Remove deprecated OPTION_BOOLEAN for parsing arguments · 4741edd5
    Stefan Beller authored and Junio C Hamano's avatar Junio C Hamano committed
    As of b04ba2bb OPTION_BOOLEAN was deprecated.
    This commit removes all occurrences of OPTION_BOOLEAN.
    In b04ba2bb
    
     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: default avatarStefan Beller <stefanbeller@googlemail.com>
    Signed-off-by: default avatarJunio C Hamano <gitster@pobox.com>
    4741edd5