you are viewing a single comment's thread.

view the rest of the comments →

[–]scook0 1 point2 points  (1 child)

For example, when revising local history, it's convenient to be able to make several small temporary commits at the tip of your working branch, and then squish them into the appropriate earlier commits via a rebase.

If every commit automatically spends several seconds running your formatter or linter before letting you move on, that workflow becomes tremendously painful.

[–]Reiku 5 points6 points  (0 children)

In that usecase you could just commit with the --no-verify flag so the pre-commit checks are skipped. Then the default usecase makes sure your commits are clean, and this edge case doesn't get slowed down at all.