Re: [PATCH v6 0/3] completion: sparse-checkout updates
- From
Junio C Hamano <gitster@pobox.com>
- Date
- Feb 4, 2022, 21:47 UTC
- Message-ID
- <xmqq5ypul2wu.fsf@gitster.g>
- In-Reply-To
- <CABPp-BHgU3-VVt+OYfY77_ymPdFHbs8x1SMN_V9jfawDZ570Ng@mail.gmail.com>
Elijah Newren <newren@gmail.com> writes:
> Handling them was specifically the job of the third patch in the > series, and thus it made sense to add some kind of test for them.
Ah, yeah, reading from ls-tree via process substitution to avoid a pipe that makes the loop a subshell and using "read -d$'\0'" with IFS disabled to grok the -z output. Full of bash-isms of the good kind ;-).
Nicely done, and it deserves to be showed off in tests.