| ▲ | magicalhippo 9 hours ago | ||||||||||||||||||||||||||||||||||
Fair enough, in our team we all got the same tools, but we're a smaller shop. > "fix stuff" becomes a proper entry describing what actually changed. Typically the diff tells this, what I need to know is why things changed, but almost always it's better to put that in comments I find. Assuming it's not obvious that is. So personally I'd be more interested in something that ensured I didn't encode a lot of implicit assumptions and such without documenting it in form of comments, or at the very least the commit message. I can see from the diff that my colleague swapped out an inner loop with one that does things slightly differently, I can see what the new code does, but why is not always obvious and should be documented. | |||||||||||||||||||||||||||||||||||
| ▲ | mandeepsng 9 hours ago | parent [-] | ||||||||||||||||||||||||||||||||||
Fair point — the "why" lives in the developer's head and no diff reader can recover it. The bet is that automating the "what" frees up your commit message to carry the "why" instead. Most messages today are wasted describing what changed because that felt easier to type. The pre-commit nudge you're describing is the better product though. | |||||||||||||||||||||||||||||||||||
| |||||||||||||||||||||||||||||||||||