by js2 · 7y ago · 0 comments
For hairy code, I'd rather have an out of date comment than none at all. I can recall a lot more times wishing code was commented than having encountered a stale comment. And especially today, when code is usually in a VCS where you can blame the lines, it's not that hard to double-check if a comment seems off.
So, I think the absence of comments is far worse.
Also, from the git annotate man page[3]: The only difference between this command and git-blame is that they use slightly different output formats, and this command exists only for backward compatibility to support existing scripts, and provide a more familiar command name for people coming from other SCM systems.
[1] https://github.com/git/git/commit/cbfb73d73f272f194bafa70d5b...
[2] https://github.com/git/git/commit/c65e898754ef68a5520b279189...