# To apply globally, put this to $HOME/.config/git/attributes # For fine grained control, see # https://www.kernel.org/pub/software/scm/git/docs/gitattributes.html # Enable tab-in-indent in addition to the default WS errors * whitespace=trailing-space,space-before-tab,tab-in-indent # except for makefiles where tabs are required; reset to defaults Makefile* !whitespace # Custom diff hunk headers: @@ -k,l +n,m @@ FUNCTION *.cc diff=cpp *.h diff=cpp *.html diff=html *.pm diff=perl *.py diff=python *.rb diff=ruby