- [Commit](https://github.com/Arkweid/lefthook/commit/0426936f48f248221126f15619932b0dc8c54d7a) Add `-a` means `aggresive` strategy for `install` command
bash
lefthook install -a clear .git/hooks dir and reinstall lefthook hooks
- [Commit](https://github.com/Arkweid/lefthook/commit/5efb0677a4a9ec1728d3cf1a083075e23315a796) Add Lefthook version indicator for commands and script execution
- [Commit](https://github.com/Arkweid/lefthook/commit/8b55d91eed46643a1674bd4ad96fa211a177e159) Remove `npx` as dependency from node wrapper
Now we will call directly binary from `./node_modules`
- [Commit](https://github.com/Arkweid/lefthook/commit/76ffed4c698bc074984e91f5610c0b98784bd10b) Add `-f` means `force` strategy for `install` command
bash
lefthook install -f reinstall lefthook hooks without sync info check
- PR [27](https://github.com/Arkweid/lefthook/pull/27) Move LEFTHOOK env check in hooks files
Now if LEFTHOOK=0 we will not call the binary file
- PR [26](https://github.com/Arkweid/lefthook/pull/26) + [commit](https://github.com/Arkweid/lefthook/commit/afd67f94631a10975209ed4c5fabc763f44280eb) Add `{push_files}` shortcut
Add shortcut `{push_files}`
pre-commit:
commands:
rubocop:
run: rubocop {push_files}
It same as:
pre-commit:
commands:
rubocop:
files: git diff --name-only HEAD {push} || git diff --name-only HEAD master
run: rubocop {push_files}
- [Commit](https://github.com/Arkweid/lefthook/commit/af087b032a14952aa1dd235a3d0b5a51bc760a10) Add `min_version` option
You can mark your config for minimum Lefthook version: