>> How can I change the "git diff" command used by magit? More specifically,
>> somebody committed a huge set of files to repository with crlf line ending. 
>> So
>> when I check diff in magit, everything is different now making it impossible 
>> to
>> see the real difference. I don't want to rewrite the history to fix this in 
>> the
>> repository, instead, I want to pass "--ignore-space-at-eol" to "git diff". I
>> have tried this on command line and it works. But how can I tell magit to use
>> this option when it sends "git diff" to git?
>
> (add-to-list 'magit-diff-options "--ignore-space-at-eol") will
> probably do what you want

Just tried, doesn't work. The following are steps of what I was doing:

M-x magit -> l -> L -> n -> -> n

Then I got the "diff" output in other window, which shows everything is
different, of course most of the difference are CRLF difference, suck!!!

What appeared strange to me is that it seems that magit never called "git diff"
to get this "diff". Can anybody tell me what I'm missing here?

Thanks,

York

Reply via email to