-
A 4x faster .gitignore check by copying a shortcut git already takes
The .gitignore Explainer took 2.7 s on 200 rules and 20,000 paths. Git skips its matcher for rules like *.log; doing the same got it to 0.7 s, output unchanged.
-
In a .gitignore, ? matches a byte, not a letter: café.txt slips past caf?.txt
Git matches .gitignore wildcards byte by byte. é is two bytes in UTF-8, so ? and [...] see half a letter. Our explainer got this wrong until we tested it.
-
The .gitignore line git never reads, and a ** rule that changed in git 2.52
A free tool that names the rule deciding every path, as git does. Testing it against two gits found that ** after text changed meaning in 2.52.