sparse-checkout: extract add_patterns_from_input()
commit6fb705abcb6044f07954b486d71c05151262b6b6
authorDerrick Stolee <dstolee@microsoft.com>
Tue, 11 Feb 2020 15:02:21 +0000 (11 15:02 +0000)
committerJunio C Hamano <gitster@pobox.com>
Tue, 11 Feb 2020 16:47:11 +0000 (11 08:47 -0800)
treeba8aae71698827199a850bc53bd31bd103fbb838
parentf998a3f1e588d73ed7285cb14ac4839f63f6dc82
sparse-checkout: extract add_patterns_from_input()

In anticipation of extending the sparse-checkout builtin with "add"
and "remove" subcommands, extract the code that fills a pattern list
based on the input values. The input changes depending on the
presence of "--stdin" or the value of core.sparseCheckoutCone.

Signed-off-by: Derrick Stolee <dstolee@microsoft.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
builtin/sparse-checkout.c