Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Optimize git status parsing slightly.
Instead of paying for multiple function calls and any string parsing at all, use a fast integer that can fit at least two chars inside and compare them directly. We also move the struct and enum declarations into the only function that uses them. Also make the .s buffer for the resulting string smaller. It doesn't need 64 chars.
- Loading branch information