mirror of
https://github.com/tj/git-extras.git
synced 2026-09-10 07:26:17 -04:00
Merge branch 'integration'
This commit is contained in:
commit
be4e67fdc5
1
AUTHORS
1
AUTHORS
|
|
@ -11,6 +11,7 @@ Patches and Suggestions
|
|||
|
||||
- Kenneth Reitz
|
||||
- Aggelos Orfanakos
|
||||
- Jonathan "Duke" Leto
|
||||
- Domenico Rotiroti
|
||||
- Jason Young
|
||||
- Nick Campbell
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in a new issue