mirror of
https://github.com/pre-commit/pre-commit.git
synced 2026-02-17 16:24:40 +04:00
Replace git rev-list --quiet with git cat-file -e for checking if a revision exists. This changes the operation from O(commits) to O(1). Benchmarks from a large monorepo: - git rev-list --quiet <sha>: 5150ms - git cat-file -e <sha>: 4ms Both commands have the same semantics: return success if the revision exists in the local repo, failure otherwise. |
||
|---|---|---|
| .. | ||
| __init__.py | ||
| autoupdate.py | ||
| clean.py | ||
| gc.py | ||
| hazmat.py | ||
| hook_impl.py | ||
| init_templatedir.py | ||
| install_uninstall.py | ||
| migrate_config.py | ||
| run.py | ||
| sample_config.py | ||
| try_repo.py | ||
| validate_config.py | ||
| validate_manifest.py | ||