Re: [PATCH] diff: --abbrev option
From: Petr Baudis <hidden>
Date: 2016-06-15 22:42:15
Dear diary, on Sun, Dec 18, 2005 at 03:57:19AM CET, I got a letter where Junio C Hamano [off-list ref] said that...
Petr Baudis [off-list ref] writes:quoted
I was actually thinking to by default trim all the hashes Cogito show to 12 or 16 characters. Seven still seems dangerously low to me, though; it would be nice if the number of characters to trim would be configurable (unless I've missed that).Well, I did better than you imagined this time, for a change ;-) It trims and adds extra as needed without breaking alignments, so you could get something like this:quoted
:100755 100755 0266f46... b0e54ed... M git-branch.sh :100755 100755 f241d4b9.. 36308d2ab. M git-checkout.shThat is, ... is not just distraction but are part of the design. Cut and paste is a byproduct.
Ok, that's nice! :-) And if I'm going to machine-process this later, I can just trim the trailing dots anyway. And it seems that I can give --abbrev a number argument to specify the minimal abbreviation, even cooler! :-) -- Petr "Pasky" Baudis Stuff: http://pasky.or.cz/ VI has two modes: the one in which it beeps and the one in which it doesn't.