Navigation Menu

Skip to content

Commit

Permalink
Added git-summary
Browse files Browse the repository at this point in the history
  • Loading branch information
tj committed Aug 12, 2010
1 parent 0a84ea1 commit d77cc7a
Show file tree
Hide file tree
Showing 3 changed files with 44 additions and 0 deletions.
2 changes: 2 additions & 0 deletions Makefile
Expand Up @@ -8,6 +8,7 @@ BINS = bin/git-count \
bin/git-delete-tag \
bin/git-repl \
bin/git-commits-since \
bin/git-summary \
bin/git-release

install:
Expand All @@ -21,6 +22,7 @@ uninstall:
rm -f $(PREFIX)/bin/git-commits-since
rm -f $(PREFIX)/bin/git-delete-branch
rm -f $(PREFIX)/bin/git-delete-tag
rm -f $(PREFIX)/bin/git-summary
rm -f $(PREFIX)/bin/git-repl

.PHONY: install uninstall
29 changes: 29 additions & 0 deletions Readme.md
Expand Up @@ -9,6 +9,7 @@

## Commands

- git summary
- git changelog
- git commits-since
- git count
Expand All @@ -18,6 +19,34 @@
- git release
- git repl

## git-summary

Outputs a repo summary:

project: express
commits: 1893
files : 111
authors:
1285 visionmedia
478 Tj Holowaychuk
48 Aaron Heckmann
34 csausdev
26 ciaranj
6 Guillermo Rauch
3 Nick Poulden
2 Brian McKinney
2 Benny Wong
1 Justin Lilly
1 James Herdman
1 Adam Sanderson
1 Viktor Kelemen
1 Gregory Ritter
1 Greg Ritter
1 ewoudj
1 isaacs
1 Matt Colyer


## git-repl

GIT read-eval-print-loop:
Expand Down
13 changes: 13 additions & 0 deletions bin/git-summary
@@ -0,0 +1,13 @@
#!/bin/sh

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`

echo
echo " project: $project"
echo " commits: $commit_count"
echo " files : $file_count"
echo " authors: \n$authors"
echo

0 comments on commit d77cc7a

Please sign in to comment.