sparse-checkout: add '--stdin' option to set subcommand
commit7bffca95ea1ca4f55663374ea9b929b9df5be04b
authorDerrick Stolee <dstolee@microsoft.com>
Thu, 21 Nov 2019 22:04:37 +0000 (21 22:04 +0000)
committerJunio C Hamano <gitster@pobox.com>
Fri, 22 Nov 2019 07:11:44 +0000 (22 16:11 +0900)
tree7a4895c16d6dfaf38faffce8220ecd34d0c1ac6c
parentf6039a9423d042d61fb4cfccb395bd04c4bd5322
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>
Documentation/git-sparse-checkout.txt
builtin/sparse-checkout.c
t/t1091-sparse-checkout-builtin.sh