Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932208AbWIYGWR (ORCPT ); Mon, 25 Sep 2006 02:22:17 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S932215AbWIYGWR (ORCPT ); Mon, 25 Sep 2006 02:22:17 -0400 Received: from emailer.gwdg.de ([134.76.10.24]:63449 "EHLO emailer.gwdg.de") by vger.kernel.org with ESMTP id S932214AbWIYGWQ (ORCPT ); Mon, 25 Sep 2006 02:22:16 -0400 Date: Mon, 25 Sep 2006 08:17:28 +0200 (MEST) From: Jan Engelhardt To: Linus Torvalds cc: Adrian Bunk , Jeff Garzik , Andrew Morton , LKML , junkio@cox.net Subject: Re: git diff <-> diffstat In-Reply-To: Message-ID: References: <20060924161809.GA13423@havoc.gtf.org> <45172297.6070108@garzik.org> <20060925011436.GC4547@stusta.de> <20060925022208.GF4547@stusta.de> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-Spam-Report: Content analysis: 0.0 points, 6.0 required _SUMMARY_ Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1031 Lines: 31 >> Ah, OK. The truncates are something I wasn't used from diffstat >> (diffstat always prints the complete name). > >Yeah, I don't know what the right solution is. > >Especially with renames (but even without), diffstat-like output can get >some _really_ long lines, and since I think it's important to get the >actual _stat_ part to line up (so that you can really see where the big >changes are), Would it be useful to use the logarithm for the + and -? Like #perl print $filename, " | ", "+" x log($additions) / log(2), "-" x log($deletions) / log(2); That would print 'small' changes with more or less (might want to tune log(2)) their regular amount of +/-, while 'large' changes (say, 1000+?) do not create extremely long lines. Jan Engelhardt -- - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/