From: Junio C Hamano Date: Thu, 7 Mar 2019 00:59:52 +0000 (+0900) Subject: Merge branch 'nd/diff-parseopt' X-Git-Tag: v2.22.0-rc0~180 X-Git-Url: https://git.lorimer.id.au/gitweb.git/diff_plain/54b469b9e9a9f276a5980265cd2abeb003cb6bf3?ds=inline;hp=--cc Merge branch 'nd/diff-parseopt' The diff machinery, one of the oldest parts of the system, which long predates the parse-options API, uses fairly long and complex handcrafted option parser. This is being rewritten to use the parse-options API. * nd/diff-parseopt: diff.c: convert --raw diff.c: convert -W|--[no-]function-context diff.c: convert -U|--unified diff.c: convert -u|-p|--patch diff.c: prepare to use parse_options() for parsing diff.h: avoid bit fields in struct diff_flags diff.h: keep forward struct declarations sorted parse-options: allow ll_callback with OPTION_CALLBACK parse-options: avoid magic return codes parse-options: stop abusing 'callback' for lowlevel callbacks parse-options: add OPT_BITOP() parse-options: disable option abbreviation with PARSE_OPT_KEEP_UNKNOWN parse-options: add one-shot mode parse-options.h: remove extern on function prototypes --- 54b469b9e9a9f276a5980265cd2abeb003cb6bf3