title: why git is considering the whole file changed while just a part of it is changed
body: <p>I'm facing a strange situation with <code>git</code> . I just have edited several lines in a long file but then when I went to commit changes ,I saw that git just highlighted the whole file content with a red color . what is wrong ?</p>
  
  <p>I'm using git's windows GUI</p>
  
  <p>Edit : one thing I remember now is that I added .csproj to the gitignore list in last commit . does this has any effect on this ?</p>
  
  <p>Update : the problem as friends suggested was from line ending . I solved it using this <a href="https://stackoverflow.com/questions/1510798/trying-to-fix-line-endings-with-git-filter-branch-but-having-no-luck/1511273">question</a>'s <a href="https://stackoverflow.com/questions/1510798/trying-to-fix-line-endings-with-git-filter-branch-but-having-no-luck/1511273#1511273">answer</a></p>