From mboxrd@z Thu Jan 1 00:00:00 1970 From: Junio C Hamano Subject: Re: [PATCH 3/4] t: rev-parse-parents: avoid yoda conditions Date: Tue, 03 Sep 2013 10:31:00 -0700 Message-ID: References: <1378103439-3225-1-git-send-email-felipe.contreras@gmail.com> <1378103439-3225-4-git-send-email-felipe.contreras@gmail.com> <20130903071256.GD3608@sigill.intra.peff.net> <20130903075107.GA25540@goldbirke> <20130903080358.GA30158@sigill.intra.peff.net> <20130903111006.GJ29840@goldbirke> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Cc: SZEDER =?utf-8?Q?G=C3=A1bor?= , Jeff King , git@vger.kernel.org To: Felipe Contreras X-From: git-owner@vger.kernel.org Tue Sep 03 19:31:16 2013 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 1VGuRf-00069j-Vs for gcvg-git-2@plane.gmane.org; Tue, 03 Sep 2013 19:31:16 +0200 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1757015Ab3ICRbM (ORCPT ); Tue, 3 Sep 2013 13:31:12 -0400 Received: from b-pb-sasl-quonix.pobox.com ([208.72.237.35]:34448 "EHLO smtp.pobox.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1756429Ab3ICRbL (ORCPT ); Tue, 3 Sep 2013 13:31:11 -0400 Received: from smtp.pobox.com (unknown [127.0.0.1]) by b-sasl-quonix.pobox.com (Postfix) with ESMTP id AA4C73F3DB; Tue, 3 Sep 2013 17:31:07 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=pobox.com; h=from:to:cc :subject:references:date:in-reply-to:message-id:mime-version :content-type; s=sasl; bh=OWgdJSZUO6wY8LtTG8T7WBD8wnk=; b=mAEzdn qSTxWypKlto7eBHR7BtwTz6UmAX4KBc4cWhGVhx1lJmgkJRZywRzZbe6hGNZ4p6I 77mcq86Wzx5Gj8jLIuriP4PQcKb5o0RD1G1KfgQBJa+t+p3GL3aGfmJgIrIyI0h7 1WaQytRlBkDafAx1G7O+CGxtEgUku2QXlS/zU= DomainKey-Signature: a=rsa-sha1; c=nofws; d=pobox.com; h=from:to:cc :subject:references:date:in-reply-to:message-id:mime-version :content-type; q=dns; s=sasl; b=Kx3r4sVlZ0Mgr2huXNTd5ZRbIf4VC33q mZ2hqNjUlZTKdOaB8pfDEvj9TjQly1JGby8M5vi8nSgnDnU2MfESsXJwABu7gvbx p5nmWMv5z64LZcExfcc6sUVJMHEJAUL6lTX5YGD1WG2PgkrJxeHS0sEJFqY4slin Mpuh6K88lGA= Received: from b-pb-sasl-quonix.pobox.com (unknown [127.0.0.1]) by b-sasl-quonix.pobox.com (Postfix) with ESMTP id D918F3F3D8; Tue, 3 Sep 2013 17:31:06 +0000 (UTC) Received: from pobox.com (unknown [72.14.226.9]) (using TLSv1 with cipher DHE-RSA-AES128-SHA (128/128 bits)) (No client certificate requested) by b-sasl-quonix.pobox.com (Postfix) with ESMTPSA id 79F413F3B9; Tue, 3 Sep 2013 17:31:03 +0000 (UTC) In-Reply-To: (Felipe Contreras's message of "Tue, 3 Sep 2013 08:39:54 -0500") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.3 (gnu/linux) X-Pobox-Relay-ID: 9BB74A96-14BE-11E3-B224-CA9B8506CD1E-77302942!b-pb-sasl-quonix.pobox.com Sender: git-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: git@vger.kernel.org Archived-At: Felipe Contreras writes: > There are two ways to fix an inconsistency, the other way is to fix > test_cmp. But that would be a change, and change is not welcome in > Git. If you want to do "test_cmp $actual $expect", you would have to first "fix" people's expectation that "diff A B" produces a change necessary to bring A to B, which would not likely to happen. We do the 'test_cmp expect actual' for a reason.