Merge branch 'integration'

This commit is contained in:
Tj Holowaychuk 2010-09-08 15:21:00 -07:00
commit be4e67fdc5
3 changed files with 13 additions and 4 deletions

View file

@ -11,6 +11,7 @@ Patches and Suggestions
- Kenneth Reitz
- Aggelos Orfanakos
- Jonathan "Duke" Leto
- Domenico Rotiroti
- Jason Young
- Nick Campbell

View file

@ -67,6 +67,10 @@ Outputs a repo summary:
1 isaacs
1 Matt Colyer
This command can also take a commitish, and will print a summary for the range
of commits included in the commitish:
$ git summary v42..
## git-repl

View file

@ -1,14 +1,18 @@
#!/bin/sh
COMMITISH=""
test $# -ne 0 && COMMITISH=$@
project=${PWD##*/}
commit_count=`git log --oneline | wc -l | tr -d ' '`
commit_count=`git log --oneline $COMMITISH | 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"
echo " commits: $commit_count"
echo " files : $file_count"
if test "$COMMITISH" = ""; then
echo " files : $file_count"
fi
echo " authors: "
echo "$authors"
echo
echo