| ▲ | eikenberry an hour ago | |||||||||||||
> The only thing I've found useful, and which the article doesn't even consider, is a link / id for the relevant change request. The commit already contains all the information about what was done in the change, what's missing is the context about why. The "why" is THE thing that needs to go in the git commit message. Capturing "why" is the entire point of that message and slapping a link to some external (and eventually absent) resource is not a good substitute. | ||||||||||||||
| ▲ | bluGill 4 minutes ago | parent | next [-] | |||||||||||||
I find bug trackers and source control fad change several times over the life of my code. A number from a ticket system we no longer use is not helpful. | ||||||||||||||
| ▲ | mmcnl an hour ago | parent | prev [-] | |||||||||||||
It is a good substitute. 1. Usually the commit message is often too short to capture the "why" adequately. 2. It is very beneficial to capture the why in one single source of truth, and that usually is not the Git commit message in a business context. Hate on Jira all you want, but if you capture the "why" there, you can add comments, view history, add rich context, link dependencies, add rich context, etc. Can't do that in a Git commit message. | ||||||||||||||
| ||||||||||||||