I am working with Visual Studio 10 and using GIT as version control. I am using Git extensions as the plugin in VS to use GIT. I noticed a weird issue while doing commits, when I add a new line in a file say with text "a", the previous line is seen as removed and re-added in the commit. This is how it looks in commit window:

I didn't change the two lines highlighted in the screenshot. I added only the last line with text "a". Can you let me know why the "another fix" line is showing as modified one? I am adding one more info here regarding the line ending settings, it is set as shown image:
core.autocrl might be set to false, that doesn't mean the current eol (end of line) style used by your Visual Studio 10 editor isn't different from the eol used in that README file.
If the README has only \n eol characters, and your line introduces a \r\n combination, that would explain the change.
Reopening that file with Visual Studio should lead to this dialog box:

That would give you the opportunity to use only one style.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With