Created
February 1, 2011 00:54
-
-
Save yaotti/805197 to your computer and use it in GitHub Desktop.
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
#!/bin/sh | |
# Show # of commits in the repository today | |
# $ cp num-of-commits.sh .git/hooks/post-commit | |
num_of_commits=$(git log --oneline --since="today 00:00:00" | wc -l | sed 's/^[ ]*//') | |
echo "Today's commits: $num_of_commits" | |
# # Repository dir | |
# cd $(git rev-parse --show-cdup) | |
# pwd=${PWD##*/} | |
# growlnotify -a GitX -t $pwd -m "Today's commits: $num_of_commits" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment