Skip to content
Commit afed2c01 authored by Richard Si's avatar Richard Si
Browse files

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: default avatarFabio Zadrozny <fabiofz@gmail.com>
parent e269f44b
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment