I have just encountered a problem with Git.
I use Eclipse IDE and EGit plugin.
After doing some changes to my C++ file, I see that EGit
marks some of the lines I did not touch as being added,
whereas others – deleted. So it seems somehow the ‘diff’ (or whatever is used)
does not work correctly for that particular modifications I made.
Is there any way to ‘help’ EGit (git) and mark some lines as unchanged?
Preferably from GUI of Egit, not the command line….
If I commit it as is, it thinks I changed good deal of the initial file, which I did not.
Seem like mixed line endings or that eclipse autoformats. Not sure about C++, but the Java editors likes to add trailing spaces. The menu in the quickdiff barcan be used to revert changed lines to their unchanged state.