M. Christiansen Friday
martinmch.com August 29, 2014
Using croc for running multiple git hooks

I needed the opportunity to run several checks in one git hook. To accomplish this, I wrote croc1. It’s a very simple and crude script with some pretty printing. It’s very useful for running checks as git hooks.

To use the dispatcher, symlink it to the desired git hook stage, and create a corresponding directory. Symlink or move any existing scripts into the dispatcher directory. Git hook will trigger the dispatcher, triggering any scripts not marked as .skip in the dispatcher directory.


  1. It was a crocodile that swallowed the hand of Captain Hook. ↩︎

Got questions or suggestions? Feel free to reach out.