gitattributes and checker

This commit is contained in:
2022-12-07 17:45:15 +02:00
parent c15965915f
commit c162452dd9
3 changed files with 226 additions and 0 deletions

View File

@@ -0,0 +1,9 @@
#!/usr/bin/env bash
missing_attributes=$(git ls-files | git check-attr -a --stdin | grep "text: auto")
if [[ "$missing_attributes" ]]; then
echo ".gitattributes rule missing for the following files:"
echo "$missing_attributes"
else
echo "All files have a corresponding rule in .gitattributes"
fi