#!/bin/sh if [ ! -z "$1" ]; then arg=$1; shift; fi if test "$arg" = "--all"; then git shortlog -n $@ | grep "):" | sed 's|:||' echo fi echo total `git log --oneline | wc -l`