diff options
| author | Junio C Hamano <gitster@pobox.com> | 2016-08-10 11:55:23 -0700 |
|---|---|---|
| committer | Junio C Hamano <gitster@pobox.com> | 2016-08-10 11:55:24 -0700 |
| commit | 60b84ba26c588c09759b90b96e072cceb862a859 (patch) | |
| tree | 90b7431765568e56ad10815a9a005682d54a5a95 /builtin/commit.c | |
| parent | Merge branch 'ls/travis-enable-httpd-tests' into maint (diff) | |
| parent | parse_options: allocate a new array when concatenating (diff) | |
| download | git-60b84ba26c588c09759b90b96e072cceb862a859.tar.gz git-60b84ba26c588c09759b90b96e072cceb862a859.zip | |
Merge branch 'jk/parse-options-concat' into maint
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
Diffstat (limited to 'builtin/commit.c')
0 files changed, 0 insertions, 0 deletions
