openOutpaint/.githooks/pre-commit
Victor Seiji Hariki c4d52fdfad now only considers staged files
Signed-off-by: Victor Seiji Hariki <victorseijih@gmail.com>
2022-12-30 07:44:10 -03:00

9 lines
No EOL
239 B
Bash
Executable file

#!/bin/sh
#
# Script to perform some basic operations to the code before committing.
# Adds file hashes to html script imports for cache busting purposes
sh .devtools/updatehashes.sh gitadd
# Adds file to current commit
git add "**.html"