Skip to content

Add support for core.maxStat configuration #1853

@jelmer

Description

@jelmer

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.

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions