Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

agreed. My team used to like of extensive commit messages, so that if you had trouble with a piece of code you could just git blame it and take a look at the referred commit.

The problem with that approach is that it doesn't survive as well as you'd like, because fixing a typo in a line would get you "ownership" of the line (since only the last person to change it is blamed). It's even worse in semi-major refactors due to moved/renamed files being treated as new....

Far better to have docs apart.



> fixing a typo in a line would get you "ownership" of the line (since only the last person to change it is blamed).

That's a UI/UX/usability problem with blame, not an inherent one with the practice. Github's blame UI solves this very elegantly (blame history can be traversed easily), as do some others.

> It's even worse in semi-major refactors due to moved/renamed files being treated as new....

This on the other hand is a real problem with Git, but I don't see that it's strictly related to putting context in commit messages. This issue occurs either way.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: