overcommit icon indicating copy to clipboard operation
overcommit copied to clipboard

[Feature Request] Overcommit TextWidth should not fail if a commit line containing only a url is longer than preferred length

Open KarimElsayad247 opened this issue 2 years ago • 1 comments

Currently, if I attempt to commit with a message such as this:

CODE-123: Fix obscure bug

This problem happened because blah blah blah....
More info here
[https://](https://stackoverflow.com/questions/49649015/overcommit-gem-is-preventing-a-commit)

Commit will fail

Running commit-msg hooks
Check text width..........................................[TextWidth] FAILED
Line 5 of commit message has > 72 characters

However, you can't really break down url lines without breaking link functionality in terminals and web interfaces such as in github.

KarimElsayad247 avatar Feb 06 '24 15:02 KarimElsayad247

Currently the only special behavior available was the one introduced in this PR https://github.com/sds/overcommit/pull/386

KarimElsayad247 avatar Feb 06 '24 15:02 KarimElsayad247