Created
November 28, 2012 03:13
-
-
Save mooz/4158814 to your computer and use it in GitHub Desktop.
Ignore coding-style related changes in magit-blame
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(defadvice magit-blame-file-on (around magit-blame-ignore-whitespace activate) | |
(let ((buffer (ad-get-arg 0))) | |
(save-excursion | |
(with-current-buffer buffer | |
(save-restriction | |
(with-temp-buffer | |
(magit-git-insert (list "blame" | |
"-w" ; ignore coding-style related changes | |
"--porcelain" "--" | |
(file-name-nondirectory | |
(buffer-file-name buffer)))) | |
(magit-blame-parse buffer (current-buffer)))))))) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment