In netbeans, if I open a file which is under version control the lines which are modified are highlighted in the left. (green for new lines and blue for modified lines)
There are at least two things you must do to get revision-based change highlighting (i.e., ones that do not disappear when the file is saved) to show up in Eclipse's "overview ruler" when using Git:
Preferences
> Team
> Git
> Projects
> Automatically Share project that are located inside Git repositories
is checked or import the project into your workspace using Import...
> Git
> Projects from Git
(as pointed out by @cornelius in a comment on another answer) Preferences
> Editors
> Text Editors
> Quick Diff