You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
18 lines
393 B
18 lines
393 B
#!/bin/sh
|
|
|
|
COMMITISH=""
|
|
test $# -ne 0 && COMMITISH=$@
|
|
project=${PWD##*/}
|
|
commit_count=`git log --oneline $COMMITISH | wc -l | tr -d ' '`
|
|
file_count=`git ls-files | wc -l | tr -d ' '`
|
|
authors=`git shortlog -n -s $COMMITISH`
|
|
|
|
echo
|
|
echo " project: $project"
|
|
echo " commits: $commit_count"
|
|
if test "$COMMITISH" = ""; then
|
|
echo " files : $file_count"
|
|
fi
|
|
echo " authors: "
|
|
echo "$authors"
|
|
echo
|
|
|