3 ms·
Commit messages are much harder to get to for a given line of code than a comment would be.
by phendrenad2 6y ago
Commit messages are much harder to get to for a given line of code than a comment would be.
- shepherdjerred 6y agoNot if you use a nice IDE: https://www.jetbrains.com/help/idea/investigate-changes.html#annotate https://www.jetbrains.com/help/idea/investigate-changes.html...
- rpdillon 6y agoOr even just Emacs. http://www.gnu.org/software/emacs/manual/html_node/emacs/Old-Revisions.html http://www.gnu.org/software/emacs/manual/html_node/emacs/Old...
- sanderjd 6y agoI actually find file and directory level history useful more often than the line-level annotate/blame history that seems to get all the attention. I do find line level history useful as well, I'm just saying less often. At the directory level, I look at the history of commit messages to get a sense for how the module(s) under that directory have evolved over time. At the file level, I look at the history of commit messages and often dig into the associated diff in order to see how the API and/or implementation have evolved. I'll often follow the file-level diff to the full commit to see what the entire change entailed. This gives me tons of context on the what and the why of a codebase's evolution, and it's all aided by good commit messages. Line level blame/annotate is sometimes useful when I'm trying to trace how some particular implementation came to be, but it is easy to lose the thread across deletions and renames, which I find file and directory level history to be much more resilient to.