Code

Fix git_config_bool_or_int
authorJunio C Hamano <gitster@pobox.com>
Sun, 13 Apr 2008 19:11:11 +0000 (12:11 -0700)
committerJunio C Hamano <gitster@pobox.com>
Sun, 13 Apr 2008 19:11:11 +0000 (12:11 -0700)
commitc35b0b5884a12685aa794e00f51bc7dfaa0dd91c
treef1e76be5163a7bc4606380ebf3cff7922f18d27d
parentf43e2fd43b50d5a82a34bb3e4f848cb38bf93b7f
Fix git_config_bool_or_int

The earlier one botched the return value logic between config_bool and
config_bool_and_int.  The former should normalize between 0 and 1 while
the latter should give back full range of integer values.

Signed-off-by: Junio C Hamano <gitster@pobox.com>
builtin-config.c
config.c
t/t1300-repo-config.sh