├── hooks └── commit-msg └── README.md /hooks/commit-msg: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | 3 | unamestr=$(uname) 4 | commitmsg=$(head -n 1 $1) 5 | 6 | if [[ "$commitmsg" =~ .*😂$ ]]; then 7 | exit; 8 | fi 9 | 10 | 11 | if [[ "$unamestr" == 'Linux' || "$unamestr" == 'FreeBSD' ]]; then 12 | sed -i '1 s/$/ 😂/' $1 13 | elif [[ "$unamestr" == 'Darwin' ]]; then 14 | sed -i '' '1 s/$/ 😂/' $1 15 | fi 16 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # GIT 😂 2 | 3 | Don't you think our commit messages are a bit too serious? Since I started 4 | using `😂` with my commit messages my life in the company became ~152% better 😂 5 | 6 | Just look at these great examples how a simple `😂` at the end can make 7 | communication inside your team much more humane 😂 8 | 9 | - closes #123 moved back button 6 pixels left 😂 10 | - closes #172 changed header color 😂 11 | - closes #422 fixed a possible memory leak when sharing handle between threads 😂 12 | 13 | Start adding `😂` to all your commit messages! 14 | 15 | ## Installing 😂 16 | 17 | Just copy `hooks/commit-msg` from this repo to your local `.git/hooks/` and 18 | enjoy 😂 19 | 20 | ## TODO 😂 21 | 22 | Please contribute 😂 23 | 24 | - JIRA plugin to add `😂` to every ticket title and every comment. 25 | - Slack plugin to add `😂` to every message. 26 | 27 | --------------------------------------------------------------------------------