]> git.ipfire.org Git - thirdparty/git.git/commit - list-objects-filter-options.c
list-objects-filter-options: create copy helper
authorDerrick Stolee <derrickstolee@github.com>
Wed, 9 Mar 2022 16:01:32 +0000 (16:01 +0000)
committerJunio C Hamano <gitster@pobox.com>
Wed, 9 Mar 2022 18:25:26 +0000 (10:25 -0800)
commit4a4c3f9b6389168033843814ad45e69bf0b92b1d
tree989ea55d1a3077f9f1d4200cf7eaec2e467a34d8
parent1f52cdfacb6af203cdcc6a5101fc8cb5fff72735
list-objects-filter-options: create copy helper

As we add more embedded members with type 'struct
list_objects_filter_options', it will be important to easily perform a
deep copy across multiple such structs. Create
list_objects_filter_copy() to satisfy this need.

This method is recursive to match the recursive nature of the struct.

Signed-off-by: Derrick Stolee <derrickstolee@github.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
list-objects-filter-options.c
list-objects-filter-options.h