From mboxrd@z Thu Jan 1 00:00:00 1970 From: Junio C Hamano Subject: Re: [PATCH 0/3] Teach Git about the patience diff algorithm Date: Wed, 07 Jan 2009 12:48:57 -0800 Message-ID: <7v63kqall2.fsf@gitster.siamese.dyndns.org> References: <20081104152351.GA21842@artemis.corp> <20081104004001.GB29458@artemis.corp> <20081104083042.GB3788@artemis.corp> <20081104152351.GA21842@artemis.corp> <20090106111712.GB30766@artemis.corp> <1231359317.6011.12.camel@maia.lan> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Cc: Sam Vilain , Pierre Habouzit , Linus Torvalds , davidel@xmailserver.org, Francis Galiegue , Git ML To: Johannes Schindelin X-From: git-owner@vger.kernel.org Wed Jan 07 21:50:33 2009 Return-path: Envelope-to: gcvg-git-2@gmane.org Received: from vger.kernel.org ([209.132.176.167]) by lo.gmane.org with esmtp (Exim 4.50) id 1LKfMF-0005hX-9X for gcvg-git-2@gmane.org; Wed, 07 Jan 2009 21:50:31 +0100 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753632AbZAGUtM (ORCPT ); Wed, 7 Jan 2009 15:49:12 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1753026AbZAGUtL (ORCPT ); Wed, 7 Jan 2009 15:49:11 -0500 Received: from a-sasl-fastnet.sasl.smtp.pobox.com ([207.106.133.19]:47222 "EHLO sasl.smtp.pobox.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753567AbZAGUtK (ORCPT ); Wed, 7 Jan 2009 15:49:10 -0500 Received: from localhost.localdomain (unknown [127.0.0.1]) by a-sasl-fastnet.sasl.smtp.pobox.com (Postfix) with ESMTP id 733168E991; Wed, 7 Jan 2009 15:49:08 -0500 (EST) Received: from pobox.com (unknown [68.225.240.211]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by a-sasl-fastnet.sasl.smtp.pobox.com (Postfix) with ESMTPSA id D4C738E98C; Wed, 7 Jan 2009 15:48:59 -0500 (EST) In-Reply-To: (Johannes Schindelin's message of "Wed, 7 Jan 2009 21:38:36 +0100 (CET)") User-Agent: Gnus/5.110006 (No Gnus v0.6) Emacs/21.4 (gnu/linux) X-Pobox-Relay-ID: A127E46C-DCFC-11DD-83A4-5720C92D7133-77302942!a-sasl-fastnet.pobox.com Sender: git-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: git@vger.kernel.org Archived-At: Johannes Schindelin writes: > After compiling and installing, something like this should be fun to > watch: > > $ git rev-list --all --parents | \ > grep " .* " | \ > while read commit parent1 parent2 otherparents > do > test -z "$otherparents" || continue > git checkout $parent1 && > git merge $parent2 && > git diff > without-patience.txt && > ... > if ! cmp without-patience.txt with-patience.txt > then > echo '===============================' > echo "differences found in merge $commit" > ... > cat with-patience.txt > fi || > exit > done | tee patience-merge.out An even more interesting test would be possible by dropping "&&" from the two "git merge" invocations. - Your sample will exit at the first conflicting merge otherwise. - You may find cases where one resolves cleanly while the other leaves conflicts.