Configure Git whitespace checks for common source types

Tell Git to reject indentation with TABs but not trailing whitespace.