Mercurial got me used to writing commit messages in Linux style: the first line has a one-word prefix that says what the general topic of the commit is. I just realised that apparently nothing but Linux actually writes commits like this. The Linux guidelines don't even seem to make explicit this convention.

Does anyone else write commits like this? Besides Mercurial and Linux?

@JordiGH
In my experience this is the standard in OSS. For example

https://github.com/void-linux
https://github.com/vitejs

Professionally that's my rule of thumb, but it's not strongly enforced by anyone, and I make exceptions ;)

Follow

@luca @JordiGH
AFAIR git itself suggests such a structure when invoking the editor for you to type the message in.
This works great in mature projects with established codebases, not so much when you're playing around and keeping comits atomic would mean doing your best to refrain from touching the adjacent functions, making every trivial improvement 5-6 commits.
Some projects grow, but never transition to atomic commits, therefore commit messages remain… garbled 😅

Sign in to participate in the conversation
Librem Social

Librem Social is an opt-in public network. Messages are shared under Creative Commons BY-SA 4.0 license terms. Policy.

Stay safe. Please abide by our code of conduct.

(Source code)

image/svg+xml Librem Chat image/svg+xml