Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
add .gitattributes rules for rust files
Setting `diff=rust` will make git show the current function name in the hunk headers. While delta currently removes git's whitespace error markup from diffs adding the whitespace rules will mean pre-commit hooks that run `git diff --check` will reject changes with whitespace errors. The whitespace rule could perhaps be applied more widely but the Makefile and example gitcofig have leading tabs so I restricted them to rust files for now.
- Loading branch information