Re: [PATCH] (experimental) per-topic shortlog.
- From
Jeff King <peff@peff.net>
- Date
- Dec 1, 2006, 11:23 UTC
- Message-ID
- <20061201112302.GA1910@coredump.intra.peff.net>
- In-Reply-To
- <7vlklranrt.fsf@assigned-by-dhcp.cox.net>
On Fri, Dec 01, 2006 at 02:55:34AM -0800, Junio C Hamano wrote:
> [PATCH] git-blame: mark lines blamed on boundary commits.
Excellent. This is exactly what I had in mind, and it seems to produce sensible results out of the box:
git-diff --raw -r --diff-filter=AM $1 | cut -f2 |
while read f; do
git-blame -l $1 -- $f | grep -v ^- | cut -d' ' -f1
done |
sort | uniq -c | sort -rn |
while read count hash; do
echo "$count `git-rev-list --max-count=1 --pretty=oneline $hash`"
doneThanks!