parse-options: avoid magic return codes
commitf41179f16ba2fc16e31be81518536008afe2e278
authorNguyễn Thái Ngọc Duy <pclouds@gmail.com>
Sun, 27 Jan 2019 00:35:27 +0000 (27 07:35 +0700)
committerJunio C Hamano <gitster@pobox.com>
Mon, 28 Jan 2019 00:28:18 +0000 (27 16:28 -0800)
tree4a602c0e5688814a2d6823649595f64e5f3588db
parentbf3ff338a25b7353ec6d39d31e14d081be9e3471
parse-options: avoid magic return codes

Give names to these magic negative numbers. Make parse_opt_ll_cb
return an enum to make clear it can actually control parse_options()
with different return values (parse_opt_cb can too, but nobody needs
it).

Signed-off-by: Nguyễn Thái Ngọc Duy <pclouds@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
builtin/merge.c
builtin/update-index.c
parse-options-cb.c
parse-options.c
parse-options.h