I have a file that has the wrong line-endings. I'm wondering if there is anyway to fix them in a commit but in such a way that the blame won't show that I've modified every single line in the file. I'd really like to keep the file's line history useful.
Asked
Active
Viewed 1,371 times
5
-
2You might want to look at http://stackoverflow.com/questions/3945382/git-commit-that-doesnt-override-original-authors-in-git-blame?rq=1 – Chris Forrence May 14 '13 at 15:57
-
And I would say the *second* answer on that thread is better than the accepted one. – Adrian Ratnapala May 14 '13 at 16:04
1 Answers
1
Looks like git blame -w ...
should do the trick based on this answer.
Wonder if Github has a blame view that includes -w
-
I'm not sure about GitHub, but `git gui blame` I believe uses it by default. – John Szakmeister May 14 '13 at 23:02