diff --git a/bin/git-summary b/bin/git-summary index 9996b26..7014f09 100755 --- a/bin/git-summary +++ b/bin/git-summary @@ -1,9 +1,11 @@ #!/bin/sh +COMMITISH="" +test $# -ne 0 && COMMITISH=$@ project=${PWD##*/} commit_count=`git log --oneline | wc -l | tr -d ' '` file_count=`git ls-files | wc -l | tr -d ' '` -authors=`git shortlog -n -s` +authors=`git shortlog -n -s $COMMITISH` echo echo " project: $project" @@ -11,4 +13,4 @@ echo " commits: $commit_count" echo " files : $file_count" echo " authors: " echo "$authors" -echo \ No newline at end of file +echo