Is there a way to control which files get auto-collapsed in a diff at the project level?

Similar to how there exists .gitignore, I want a way to control which files are auto-collapsed when viewing a commit or diff through the GitLab UI. e.g., maybe new .cs files should never be be collapsed, but all .cs.meta files should, etc.