It depends on what kind of commit messages your team writes, and how much "churn" a line of code gets with style changes, whitespace, etc. It requires making smaller, focused commits so the comment is directly relevant to the change, and writing good commit messages that tells you why something is the way it is _now_.
I always use `git add -p` to only stage relevant portions of my current work, and then usually write a detailed message like this:
Decrease reprojection error threshold to 1.0
With improved calibration, RANSAC has been able to find
a similar number of inliers even with a tighter
threshold, resulting in better triangulations.
<maybe attach some output showing improved reprojection error stats>
Now when someone comes upon
threshold=1.0
and want to know why this number is what it is, they can get blame it. The latest commit should be enough, but it might also be useful to know why that threshold has changed over the time.
The problem with churn can be mitigated by telling git to ignore whitespace changes, but it's not perfect. Maybe more helpful is to have a style guide and make it part of your review process so you don't end up with multiple developers doing things like reformatting a multi-line function call to their liking over and over.