In Eclipse, when I add a new line of code to an existing file, if i press 'Tab' key for indentation, Eclipse generates a leading whitespace.
In code review tool (Gerrit), those leading whitespaces get flagged.
So looking for a way to check for all the leading whitespaces before committing the changes to repository.
Using 'git-diff', is there any way to detect leading whitespaces for newly added code lines?