Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
Commit message editor lies about line breaking when a line is prefixed with "Word: " #257
I tested the following: start the first line of the commit message body (i.e. not the subject) with something like
Then press the commit button, and inspect the commit log with some other tool, like
If you add a second paragraph (that doesn't contain any
Observed with git-cola v2.0.1 (debian unstable package).
Yeah.. this is cos we interpret those as special tags that shouldn't be wrapped. e.g. Signed-off-by:, Tested-by:, Reported-by:, etc. in cola/textwrap.py
The heuristic is probably too greedy right now. If possible, it'd be better to explicitly list the ones tags that it should special-case (and maybe later add a config knob to allow us to extend them) rather than assuming that all foo: lines shouldn't be wrapped.