mirror of
https://github.com/ivuorinen/dotfiles.git
synced 2026-02-07 17:50:29 +00:00
gitattributes and checker
This commit is contained in:
9
local/bin/x-check-git-attributes
Executable file
9
local/bin/x-check-git-attributes
Executable 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
|
||||
Reference in New Issue
Block a user