[PATCH 6/9] submodule.c: do not copy around submodule list

2018-09-17 Thread Stefan Beller
'calculate_changed_submodule_paths' uses a local list to compute the changed submodules, and then produces the result by copying appropriate items into the result list. Instead use the result list directly and prune items afterwards using string_list_remove_empty_items. By doing so we'll have

Re: [PATCH 6/9] submodule.c: do not copy around submodule list

2018-09-11 Thread Ramsay Jones
On 12/09/18 00:49, Stefan Beller wrote: > 'calculate_changed_submodule_paths' uses a local list to compute the > changed submodules, and then produces the result by copying appropriate > items into the result list. > > Instead use the result list directly and prune items afterwards > using

[PATCH 6/9] submodule.c: do not copy around submodule list

2018-09-11 Thread Stefan Beller
'calculate_changed_submodule_paths' uses a local list to compute the changed submodules, and then produces the result by copying appropriate items into the result list. Instead use the result list directly and prune items afterwards using string_list_remove_empty_items. By doin so we'll have