Sha256: 4e6d0eb542c75695b7ec98ffb3cd570734a665707e0c31b642366557256e6e42
Contents?: true
Size: 280 Bytes
Versions: 3
Compression:
Stored size: 280 Bytes
Contents
#!/bin/sh echo "Entering pre-commit hook ..." for file in $(git diff --staged --name-only); do echo "Normalizing $file ..." if test -f $file; then if ./script/normalize.rb "$file"; then git add $file # so the changes will be committed immediately fi fi done
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
rango-0.2.3 | support/hooks/pre-commit |
rango-0.2.1 | support/hooks/pre-commit |
rango-0.2.1.pre | support/hooks/pre-commit |