dir: break part of read_directory_recursive() out for reuse
commitc5c4eddd56ccd2ffd6a193856a660573993e9a41
authorElijah Newren <newren@gmail.com>
Tue, 10 Dec 2019 20:00:24 +0000 (10 20:00 +0000)
committerJunio C Hamano <gitster@pobox.com>
Wed, 11 Dec 2019 20:23:24 +0000 (11 12:23 -0800)
treeec3feabc7a51741381f18eb567f8b73dce1988d0
parent072a231016e5da347c3a8ff38afb72e7876dd1d7
dir: break part of read_directory_recursive() out for reuse

Create an add_path_to_appropriate_result_list() function from the code
at the end of read_directory_recursive() so we can use it elsewhere.

Signed-off-by: Elijah Newren <newren@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
dir.c