A coworker has just set up our main repo to use overcommit. It's lovely, and keeps us from invoking long CI builds which will fail for trivial reasons by warning us about issues using pre-commit hooks. But I don't feel it integrates as well with magit as I would like. Right now, my workflow looks like:
- hit
c c
in magit to commit - quickly hit
$
to pop open the process buffer and watch the checks run (and they're a bit ugly too because of escape codes for color) - enter my commit message if successful
- move on with my life. Hooray!
What I'd like would be:
- hit
c c
in magit to commit - magit automatically opens a buffer containing the pre-commit output, respecting color codes
- magit lets me enter my commit message as usual
Surely there's a way to get here. How would you approach it?
N.B. I have seen "Magit show git hook output" on Emacs StackExchange, but the answer was given in 2015 and doesn't work any more!