]> git.ipfire.org Git - thirdparty/git.git/commit - unpack-trees.c
unpack-trees: pull sparse-checkout pattern reading into a new function
authorElijah Newren <newren@gmail.com>
Fri, 27 Mar 2020 00:48:51 +0000 (00:48 +0000)
committerJunio C Hamano <gitster@pobox.com>
Fri, 27 Mar 2020 18:33:30 +0000 (11:33 -0700)
commit30e89c12f0afc5c4382b531973a5e82b60d402bd
tree11f51187371a62a33cf1a729dec9c100ca1f8a97
parent3cc7c50402ce1cbac9735da64844eb00bc096f46
unpack-trees: pull sparse-checkout pattern reading into a new function

Create a populate_from_existing_patterns() function for reading the
path_patterns from $GIT_DIR/info/sparse-checkout so that we can re-use
it elsewhere.

Reviewed-by: Derrick Stolee <dstolee@microsoft.com>
Signed-off-by: Elijah Newren <newren@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
unpack-trees.c