Added --above <n> to git-effort(1)

This commit is contained in:
TJ Holowaychuk 2012-02-08 07:59:19 -08:00
parent c1d2dfc04c
commit 9c7232afcf
2 changed files with 16 additions and 0 deletions

View file

@ -171,6 +171,12 @@ $ git summary v42..
![git effort](http://f.cl.ly/items/2B0D1x3v3w023s1r2t0g/Grab.png)
If you wish to ignore files with commits `<=` a value you may use `--above`:
```
$ git effort --above 5
```
## git-repl
GIT read-eval-print-loop:

View file

@ -1,6 +1,11 @@
#!/bin/sh
files=`git ls-files`
above='0'
if test "$1" = "--above"; then
above=$2
fi
echo
echo " file commits"
@ -10,6 +15,11 @@ for file in $files; do
commits=`git log --oneline $file | wc -l`
color='90'
if test $commits -le $above; then
continue
fi
test $commits -gt 10 && color='33'
test $commits -gt 25 && color='93'
test $commits -gt 50 && color='32'