-
-
Notifications
You must be signed in to change notification settings - Fork 419
Open
Description
Summary
Add support for the core.maxStat configuration option, which limits the number of stat operations performed during Git operations.
Description
The core.maxStat option limits the number of stat operations that Git performs when checking the working directory. This can improve performance on filesystems where stat operations are expensive, such as network filesystems or very large repositories.
Benefits
- Improved performance on slow filesystems or network mounts
- Reduced I/O overhead for operations that check many files
- Better handling of repositories with very large working directories
- Essential for optimizing Git operations in performance-critical environments
Implementation Notes
This would involve tracking stat operation counts and implementing limits or optimizations when the configured maximum is approached.