From mboxrd@z Thu Jan 1 00:00:00 1970 From: Junio C Hamano Subject: Re: Comments on recursive merge.. Date: Tue, 08 Nov 2005 17:42:26 -0800 Message-ID: <7v8xvyd2bh.fsf@assigned-by-dhcp.cox.net> References: <20051107225807.GA10937@c165.ib.student.liu.se> <7vll00ov2l.fsf@assigned-by-dhcp.cox.net> <20051108210211.GA23265@c165.ib.student.liu.se> <20051108223609.GA4805@c165.ib.student.liu.se> <20051109003236.GA30496@pasky.or.cz> <7vlkzyd4aq.fsf@assigned-by-dhcp.cox.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Cc: git@vger.kernel.org X-From: git-owner@vger.kernel.org Wed Nov 09 02:44:38 2005 Return-path: Received: from vger.kernel.org ([209.132.176.167]) by ciao.gmane.org with esmtp (Exim 4.43) id 1EZf04-0000sT-24 for gcvg-git@gmane.org; Wed, 09 Nov 2005 02:43:44 +0100 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932431AbVKIBm3 (ORCPT ); Tue, 8 Nov 2005 20:42:29 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S932444AbVKIBm2 (ORCPT ); Tue, 8 Nov 2005 20:42:28 -0500 Received: from fed1rmmtao08.cox.net ([68.230.241.31]:39631 "EHLO fed1rmmtao08.cox.net") by vger.kernel.org with ESMTP id S932431AbVKIBm2 (ORCPT ); Tue, 8 Nov 2005 20:42:28 -0500 Received: from assigned-by-dhcp.cox.net ([68.4.9.127]) by fed1rmmtao08.cox.net (InterMail vM.6.01.05.02 201-2131-123-102-20050715) with ESMTP id <20051109014136.OWCI776.fed1rmmtao08.cox.net@assigned-by-dhcp.cox.net>; Tue, 8 Nov 2005 20:41:36 -0500 To: Linus Torvalds In-Reply-To: (Linus Torvalds's message of "Tue, 8 Nov 2005 17:22:15 -0800 (PST)") User-Agent: Gnus/5.110004 (No Gnus v0.4) Emacs/21.4 (gnu/linux) Sender: git-owner@vger.kernel.org Precedence: bulk X-Mailing-List: git@vger.kernel.org Archived-At: Linus Torvalds writes: > It does: > > struct commit *commit = pop_one_commit(list_p); > int still_interesting = !!interesting(*list_p); > > in that order: it looks whether there are any interesting commits left > _after_ it has popped the top-of-stack. Ahhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhh. You are right. The problem is most of the time hidden, because we usually do one extra round (extra usually starts from 0 and we break out after we say "not interesting anymore" and extra < 0). Obviously, I was not thinking clearly.