.gitattributes 1.3 KB

12345678910111213141516171819202122
  1. # shell scripts should not use tabs to indent!
  2. *.bash text eol=lf core.whitespace whitespace=tab-in-indent,trailing-space,tabwidth=2
  3. *.sh text eol=lf core.whitespace whitespace=tab-in-indent,trailing-space,tabwidth=2
  4. # files for systemd (shell-similar)
  5. *.path text eol=lf core.whitespace whitespace=tab-in-indent,trailing-space,tabwidth=2
  6. *.service text eol=lf core.whitespace whitespace=tab-in-indent,trailing-space,tabwidth=2
  7. *.timer text eol=lf core.whitespace whitespace=tab-in-indent,trailing-space,tabwidth=2
  8. # go fmt will enforce this, but in case a user has not called "go fmt" allow GIT to catch this:
  9. *.go text eol=lf core.whitespace whitespace=indent-with-non-tab,trailing-space,tabwidth=4
  10. go.mod text eol=lf
  11. go.sum text eol=lf
  12. *.txt text eol=lf core.whitespace whitespace=tab-in-indent,trailing-space,tabwidth=2
  13. *.tpl text eol=lf core.whitespace whitespace=tab-in-indent,trailing-space,tabwidth=2
  14. *.htm text eol=lf core.whitespace whitespace=tab-in-indent,trailing-space,tabwidth=2
  15. *.html text eol=lf core.whitespace whitespace=tab-in-indent,trailing-space,tabwidth=2
  16. *.md text eol=lf core.whitespace whitespace=tab-in-indent,trailing-space,tabwidth=2
  17. *.yml text eol=lf core.whitespace whitespace=tab-in-indent,trailing-space,tabwidth=2
  18. .git* text eol=auto core.whitespace whitespace=trailing-space