Re: incorrect git diff output

From: Deepak R Varma
Date: Sun Jan 08 2023 - 13:18:46 EST


On Sun, Jan 08, 2023 at 02:07:54PM +0530, Deepak R Varma wrote:
> Hello,
> I tried to remove an extra semicolon on line number 1153 of this file
> drivers/scsi/qlogicpti.c and attempted a git diff to confirm my edits. To my
> surprise, the diff contained few other unrelated changes that I did not do. I
> tied to set aurocr git attribute in the .gitconfig file, but that did not help
> either.
>
> Does anyone know about this behavior and how to correct it?


I had a setting in my .vimrc which auto-removes trailing spaces. Joey helped me
identify the same.

Thank you Joey!

Regards,
./drv

>
> Thank you,
> ./drv