3 ms·
Does sapling support hooks like pre and post commit? My workflow leans on pre-commit (the framework) heavily and it would be hard to give that up. I’d still be
by jsmeaton 4y ago
Does sapling support hooks like pre and post commit? My workflow leans on pre-commit (the framework) heavily and it would be hard to give that up. I’d still be keen to take this for a drive though, nice work!
- durham_meta 4y agoTechnically the mercurial pre and post hooks are mostly still there, but I'm not certain we want to support them long term. The existing hook design has some problems. I'd be curious about your use case, since we don't actually use hooks internally all that much.
- anentropic 4y agoNot the OP, but I've worked on a bunch of projects which use https://pre-commit.com/ https://pre-commit.com/ that ties into git pre-commit hooks (or https://typicode.github.io/husky/#/ https://typicode.github.io/husky/#/ is another) usually to run linters and validators, speeding up the feedback loop (otherwise it's annoying to push changes to a PR and then get a CI failure minutes later for trivial linting issue)
- jsmeaton 4y agoSame here. That’s the framework we use to lint before accepting a commit.