Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Extra modifications coming in commits

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:

enter image description here

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:

enter image description here

like image 1000
Rocky Singh Avatar asked Dec 09 '25 10:12

Rocky Singh


1 Answers

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:

normalization

That would give you the opportunity to use only one style.

like image 170
VonC Avatar answered Dec 11 '25 22:12

VonC



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!