From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Bernhard R. Link" Subject: Re: possible Improving diff algoritm Date: Fri, 14 Dec 2012 23:29:38 +0100 Message-ID: <20121214222938.GB19410@client.brlink.eu> References: <7vvcc73yzh.fsf@alter.siamese.dyndns.org> <7vpq2f2az4.fsf@alter.siamese.dyndns.org> <7vzk1izcv6.fsf@alter.siamese.dyndns.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Cc: Junio C Hamano , Geert Bosch , Morten Welinder , Kevin , git To: Javier Domingo X-From: git-owner@vger.kernel.org Fri Dec 14 23:53:02 2012 Return-path: Envelope-to: gcvg-git-2@plane.gmane.org Received: from vger.kernel.org ([209.132.180.67]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1Tje7o-0007EO-Hj for gcvg-git-2@plane.gmane.org; Fri, 14 Dec 2012 23:53:00 +0100 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932591Ab2LNWwn (ORCPT ); Fri, 14 Dec 2012 17:52:43 -0500 Received: from server.brlink.eu ([78.46.187.186]:47611 "EHLO server.brlink.eu" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932173Ab2LNWwm (ORCPT ); Fri, 14 Dec 2012 17:52:42 -0500 X-Greylist: delayed 1374 seconds by postgrey-1.27 at vger.kernel.org; Fri, 14 Dec 2012 17:52:42 EST Received: from client.brlink.eu by server.brlink.eu with esmtpsa (tls-peer-hash KfHJgA) id 1TjdlG-0002L4-Eq; Fri, 14 Dec 2012 23:29:42 +0100 Received: with local; Fri, 14 Dec 2012 23:29:41 +0100 Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.21 (2010-09-15) Sender: git-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: git@vger.kernel.org Archived-At: * Javier Domingo [121214 13:20]: > I think the idea of being preferable to have a blank line at the end > of the added/deleted block is key in this case. For symmetry I'd suggest to make it preferable to have blank lines at the end or the beginning. { old + } + + { + new } vs { old } + + { + new + } is just the same case in blue. (Although empty lines alone feels not quite optimal, it is at least a good start). Bernhard R. Link