From: Junio C Hamano Date: Wed, 29 Nov 2006 00:57:00 GMT Subject: Re: [PATCH] (experimental) per-topic shortlog. Message-ID: <7v1wnnysrn.fsf@assigned-by-dhcp.cox.net> In-Reply-To: <20061128131139.GA10874@coredump.intra.peff.net> Jeff King writes: > Just for fun, I took a look at what we might see by ordering commits by > their "amount of blamedness". That is, the count of lines introduced by > a commit which were not later superseded. The script I used is below: > > #!/bin/sh > > start=$1; shift > end=$1; shift > > start_sha1=`git-rev-parse $start^{}` > git-rev-list --parents $start..$end >revs > echo $start_sha1 >>revs > for i in `git-diff --raw -r $start $end | cut -f2`; do > echo blaming $i... >&2 > git-blame -l -S revs $i | cut -d' ' -f1 > done | > grep -v $start_sha1 | > sort | uniq -c | sort -rn | > while read count hash; do > echo "$count `git-rev-list --max-count=1 --pretty=oneline $hash`" > done > > The top 15 for v1.4.3 to v1.4.4 are: > > 1604 6973dcaee76ef7b7bfcabd2f26e76205aae07858 Libify diff-files. Something is SERIOUSLY wrong. That commit is not even between v1.4.3 and v1.4.4.