From: Bernie Innocenti Date: Wed, 19 Aug 2009 09:46:37 +0000 (+0200) Subject: Add useless git-bloat script X-Git-Url: https://codewiz.org/gitweb?a=commitdiff_plain;h=dc3e571131ca2f8f98ea22c8b0376a087155e334;p=geekigeeki.git Add useless git-bloat script --- diff --git a/git-bloat b/git-bloat new file mode 100755 index 0000000..ef73cff --- /dev/null +++ b/git-bloat @@ -0,0 +1,13 @@ +#!/bin/bash +# Copyright 2009 Bernie Innocenti + +if [ $# -ne 1 ]; then + echo "Usage: $0 {path}" + exit 1 +fi + +git log --pretty=oneline "$1" | while read log; do + tree=($log) + rev=`git ls-tree ${tree[0]} "$1" | awk '{print $3}'` + git cat-file blob $rev | wc -l +done | tac | graph -T X -a 1 -y 0 1000 -X revisions -Y LOCs diff --git a/git-cat b/git-cat index bf58c40..91c3eb9 100755 --- a/git-cat +++ b/git-cat @@ -1,4 +1,7 @@ -if [ $# -ne 1 ] ; then +#!/bin/bash +# Copyright 2009 Bernie Innocenti + +if [ $# -ne 1 ]; then echo "Usage: $0 {path}" exit 1 fi