Re:Pre-commit hooks are fundamentally broken
by QuercusMax on Saturday December 27, 2025 @07:59PM
(#46407276)
Your hook really shouldn't be running on the merge commit unless you have conflicts in your merge.
[ Parent
| on HN ]
Re:Pre-commit hooks are fundamentally broken
by mcv on Monday December 29, 2025 @10:29AM
(#46421645)
Never had conflicts on a merge? We've got a lot of people on the same codebase. Merge conflicts are a fact of life. And they wouldn't be a problem without the stupid commit hook. It's the commit hook that makes them a problem.
Re:Pre-commit hooks are fundamentally broken
by QuercusMax on Tuesday December 30, 2025 @11:29AM
(#46434937)
If you have conflicts then you can fix them and run your linter or formatter. If you have a no conflict merge it doesn't matter.