I'd also say: remove thw -m option from git and force people to open the editor. Do not accept messages shorter than 3 lines, start the editor with a template
Title
What changed and why it changed.I'd also say: remove thw -m option from git and force people to open the editor. Do not accept messages shorter than 3 lines, start the editor with a template
Title
What changed and why it changed.I commit very often and usually small, "atomic" changes most of the time.
What I will do, is that I start the commit message with the most important sentence and add less important sentences after, so even if it exceeds 80 chars and you can't see the whole message you will still get the most relevant info without having to scroll sideways.
For reference, here are the commits to a project I am currently working on: https://github.com/eriknstr/jumper/commits/master
here's
some
code.
Concentrating on form over substance is myopic.>Git can take the commit message from a file using the -F or --file flags:
>git commit -F message.txt
So something like
echo 'pmontra\n say\n this\n should be several lines' | git commit -F /dev/stdin
would get around your block.echo is a very non-portable command. POSIX says: "if any of the operands contain a <backslash> character, the results are implementation‐defined."
In a HN comment, it matters, because other people will read the comment and may learn bad habits.