[Insight-developers] Odd git behavior with code reversion.

Brad King brad.king at kitware.com
Thu Sep 29 13:30:39 EDT 2011


On 9/29/2011 1:25 PM, M Stauffer (V) wrote:
> So in the case I described, do you think git blame purposely show the
> original commit because the line that's currently in the file is the
> same as it was in that original commit, even though it changed
> inbetween?

The change in this case was *adding* lines and then *removing* the same
lines.  No other lines changed.  Therefore the lines in the current
version look exactly like they did before the change was ever made.
As a result 'git blame' shows when they were originally written.

If you do just "git log -- path/to/file.hxx" that will show all the
commits that changed the file.

-Brad


More information about the Insight-developers mailing list