]> granicus.if.org Git - git/commit
sparse-checkout: add '--stdin' option to set subcommand
authorDerrick Stolee <dstolee@microsoft.com>
Mon, 21 Oct 2019 13:56:14 +0000 (13:56 +0000)
committerJunio C Hamano <gitster@pobox.com>
Wed, 23 Oct 2019 03:42:04 +0000 (12:42 +0900)
commitead918f1269c9de4058b0d82f8226f559a53a6c5
tree4374fe4088716db78059b09bcc0fd9c770745d40
parentc6b249a6e1d2e9a52b9acf9dcf0f8d4cf1807789
sparse-checkout: add '--stdin' option to set subcommand

The 'git sparse-checkout set' subcommand takes a list of patterns
and places them in the sparse-checkout file. Then, it updates the
working directory to match those patterns. For a large list of
patterns, the command-line call can get very cumbersome.

Add a '--stdin' option to instead read patterns over standard in.

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