Add pre-commit, pre-push hooks formally

This commit is contained in:
2024-10-06 16:10:46 -05:00
parent 2866c2fe4a
commit acf81f6bf6
3 changed files with 113 additions and 0 deletions

7
.hooks/pre-commit.sh Executable file
View File

@@ -0,0 +1,7 @@
#!/bin/sh
# Remove all lines starting with >[! from CARGO_README.md
sed -i '/^>\[!/d' CARGO_README.md
# Add the modified file to the commit
git add CARGO_README.md