Skip to content

Instantly share code, notes, and snippets.

@tondrej
Last active October 7, 2022 11:46
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save tondrej/68d271a62844993ffa4aef8388fcc25c to your computer and use it in GitHub Desktop.
Save tondrej/68d271a62844993ffa4aef8388fcc25c to your computer and use it in GitHub Desktop.
Git pre-commit hook to normalize LMMS project files
#!/bin/sh
for f in $(git diff --cached --name-only); do
if [ "${f##*\.}" = "mmp" ]; then
lmms_normalizer "${f}" "${f}"
git add "${f}"
fi
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment