From: Richard Si <63936253+ichard26@users.noreply.github.com> Date: Fri, 5 Aug 2022 18:04:43 +0000 (-0400) Subject: Load .gitignore and exclude regex at time of use X-Git-Url: https://git.madduck.net/etc/vim.git/commitdiff_plain/afed2c01903465f9a486ac481a66aa3413cc1b01?hp=afed2c01903465f9a486ac481a66aa3413cc1b01 Load .gitignore and exclude regex at time of use Loading .gitignore and compiling the exclude regex can take more than 15ms. We shouldn't and don't need to pay this cost if we're simply formatting files given on the command line directly. I would've loved to lazily import pathspec, but the patch won't be clean until the file collection and discovery logic is refactored first. Co-authored-by: Fabio Zadrozny ---