OSDN Git Service

submodule-config: "goto" removal in parse_config()
authorStefan Beller <sbeller@google.com>
Mon, 12 Oct 2015 17:58:58 +0000 (10:58 -0700)
committerJunio C Hamano <gitster@pobox.com>
Mon, 12 Oct 2015 19:28:33 +0000 (12:28 -0700)
commit147875fd25ca21c580102529dd51de15acae178c
treeacab6257925059ba537c73023ae37b30cb1c3d7d
parent22f698cb188243b313e024d618283e0293e37140
submodule-config: "goto" removal in parse_config()

Many components in if/else if/... cascade jumped to a shared
clean-up with "goto release_return", but we can restructure the
function a bit and make them disappear, which reduces the line count
as well.  Also reformat overlong lines and poorly indented ones
while at it.

The order of rules to verify the value for "ignore" used to be to
complain on multiple values first and then complain to boolean, but
swap the order to match how the values for "path" and "url" are
verified.

CC: Eric Sunshine <sunshine@sunshineco.com>
CC: Heiko Voigt <hvoigt@hvoigt.net>
Signed-off-by: Stefan Beller <sbeller@google.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
submodule-config.c