| ▲ | boomlinde 11 hours ago | |||||||
I am skeptical of adding anything but a brief description of the change, the reason for the change and possibly some explanation of non-obvious implementation choices to the commit message. The reason is that the commit message log serves as an overview of the changes commited. That's what humans use it for, anyway: to get an idea of what happened since they last pulled, to help give an idea of where a regression might have been introduced and so on, at a glance. To that end, brevity is very useful. My understanding is that chatbots used to perform such tasks will also benefit from brevity. | ||||||||
| ▲ | xg15 10 hours ago | parent [-] | |||||||
Well, at least in Git, the commit message already has two sections. AFAIK, the first line is supposed to be the a very brief summary, while the other lines may contain additional information and can sometimes make up a pretty long text. Lots of tools make use of this convention and only show the first line if no detail information is needed. Most tools that show the history only show the first line of each commit. But I agree with you, this still assumes that long commit messages are rare and not that almost every commit has a huge message. Also, "long" doesn't mean you should put a novel in there. | ||||||||
| ||||||||