This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/usr/bin/env bash | |
| # MIT © ernscht | |
| # git hook to run commands before `git commit` if specific source files were changed. | |
| # Run `chmod +x pre-commit` to make it executable then put it into `.git/hooks/`. | |
| # stash unstaged changes | |
| #STASH_NAME="pre-commit-$(date +%s)" | |
| #git stash save -q --keep-index $STASH_NAME |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/usr/bin/env bash | |
| # MIT © Sindre Sorhus - sindresorhus.com | |
| # forked by ernscht - https://gist.github.com/ernscht/731f9ec710e5b3d01fa3 | |
| # git hook to run a command after `git pull` if a specified file was changed | |
| # Run `chmod +x post-merge` to make it executable then put it into `.git/hooks/`. | |
| changed_files="$(git diff-tree -r --name-only --no-commit-id ORIG_HEAD HEAD)" | |
| check_run() { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /** | |
| * Stacking Level 2 | |
| */ | |
| /* nation as flag */ | |
| .nation { | |
| width: 12em; height: 12em; | |
| background: #c60001; |