Merge branch 'jk/parse-options-concat'
commitd083d420b7d24a57cfd32af71100ae4c887f3a39
authorJunio C Hamano <gitster@pobox.com>
Wed, 3 Aug 2016 22:10:25 +0000 (3 15:10 -0700)
committerJunio C Hamano <gitster@pobox.com>
Wed, 3 Aug 2016 22:10:25 +0000 (3 15:10 -0700)
tree99cd4d8f9c8408dfdab7739fb467fab3d5559ff0
parentcf27c7996e986395a05c0056684923195295fd14
parent023ff39b2994804e4a7b2274b22336bdb37d4a54
Merge branch 'jk/parse-options-concat'

Users of the parse_options_concat() API function need to allocate
extra slots in advance and fill them with OPT_END() when they want
to decide the set of supported options dynamically, which makes the
code error-prone and hard to read.  This has been corrected by tweaking
the API to allocate and return a new copy of "struct option" array.

* jk/parse-options-concat:
  parse_options: allocate a new array when concatenating
parse-options-cb.c