lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Date:	Mon, 25 Sep 2006 08:17:28 +0200 (MEST)
From:	Jan Engelhardt <jengelh@...ux01.gwdg.de>
To:	Linus Torvalds <torvalds@...l.org>
cc:	Adrian Bunk <bunk@...sta.de>, Jeff Garzik <jeff@...zik.org>,
	Andrew Morton <akpm@...l.org>,
	LKML <linux-kernel@...r.kernel.org>, junkio@....net
Subject: Re: git diff <-> diffstat


>> 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@...r.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ