mirror of
https://github.com/pre-commit/pre-commit.git
synced 2026-01-13 20:40:08 -06:00
8c78ddfd5c014069c39e811e825419c8fc3cb299
When pushing a branch that does not exist on the remote repository, instead of blindly running the checks on every file, this commit locates the first ancestor not present on the remote repository and uses its parent as the source of the fileset calculation. If it has no parents, then the remote repository has no common commits and the checks should be run on all files.
pre-commit
A framework for managing and maintaining multi-language pre-commit hooks.
For more information see: http://pre-commit.com/
Languages
Python
97.3%
R
2%
Shell
0.5%