captainhookphp / captainhook

CaptainHook is a very flexible git hook manager for software developers that makes sharing git hooks with your team a breeze.
http://captainhook.info
MIT License
1.01k stars 87 forks source link

Allow diff filter setting for conditions #222

Closed sebastianfeldmann closed 1 year ago

sebastianfeldmann commented 1 year ago

Since you can define diff filter for placeholders it is necessary to have the same functionality for conditions to not get into a situation where the condition applies and the placeholder is empty.

Issue: #220

This pull request adds the filter functionality to all StagedFiles conditions for pre-commit hooks.