From mboxrd@z Thu Jan 1 00:00:00 1970 From: Junio C Hamano Subject: Re: [PATCH 2/2] Fix t3404 assumption that `wc -l` does not use whitespace. Date: Mon, 28 Apr 2008 14:24:26 -0700 Message-ID: <7vprs9brlh.fsf@gitster.siamese.dyndns.org> References: <20080427151610.GB57955@Hermes.local> <7vej8rgq62.fsf@gitster.siamese.dyndns.org> <7vd4oac5qf.fsf@gitster.siamese.dyndns.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Cc: Brian Gernhardt , git@vger.kernel.org To: Johannes Schindelin X-From: git-owner@vger.kernel.org Mon Apr 28 23:25:32 2008 connect(): Connection refused 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 1Jqaqi-0000Hm-97 for gcvg-git-2@gmane.org; Mon, 28 Apr 2008 23:25:24 +0200 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1765397AbYD1VYf (ORCPT ); Mon, 28 Apr 2008 17:24:35 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1765470AbYD1VYf (ORCPT ); Mon, 28 Apr 2008 17:24:35 -0400 Received: from a-sasl-fastnet.sasl.smtp.pobox.com ([207.106.133.19]:38347 "EHLO sasl.smtp.pobox.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1764370AbYD1VYe (ORCPT ); Mon, 28 Apr 2008 17:24:34 -0400 Received: from localhost.localdomain (localhost [127.0.0.1]) by a-sasl-fastnet.sasl.smtp.pobox.com (Postfix) with ESMTP id B7B7C5899; Mon, 28 Apr 2008 17:24:32 -0400 (EDT) Received: from pobox.com (ip68-225-240-77.oc.oc.cox.net [68.225.240.77]) (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 ESMTP id 08DD65890; Mon, 28 Apr 2008 17:24:28 -0400 (EDT) In-Reply-To: (Johannes Schindelin's message of "Mon, 28 Apr 2008 19:01:32 +0100 (BST)") User-Agent: Gnus/5.110006 (No Gnus v0.6) Emacs/21.4 (gnu/linux) Sender: git-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: git@vger.kernel.org Archived-At: Johannes Schindelin writes: > On Mon, 28 Apr 2008, Junio C Hamano wrote: > >> Johannes Schindelin writes: >> >> > Maybe an example would help: >> > >> > -- snip -- >> > pick abcdefg This is the first commit to be picked >> > reset cdefghij >> > pick zyxwvux A commit in a side-branch >> > merge recursive abcdefg >> > -- snap -- >> >> Indeed it does. "reset cdefghij" --- does it reset to the exact cdefghij >> commit, or cdefghij commit after rewriting? > > In the example, it would be the original commit. However, a "reset > abcdefg" _after_ the "pick abcdefg" line would refer to the _rewritten_ > commit. > > The rationale: you are most likely not wanting to reference _both_ the > original _and_ the rewritten commit. That means moving the lines around inside the todo insn list makes the same "reset cdefghij" mean different things. That's insanity. At least, if you use marks, you could detect a user error that references a mark before it is defined.