From: Matthieu Moy Subject: Re: [PATCH 3/3] pull: introduce --[no-]autostash and pull.autostash Date: Tue, 16 Apr 2013 11:44:02 +0200 Message-ID: References: <1365887729-9630-1-git-send-email-artagnon@gmail.com> <1365887729-9630-4-git-send-email-artagnon@gmail.com> <7vobdfztz9.fsf@alter.siamese.dyndns.org> <7vr4ibu14j.fsf@alter.siamese.dyndns.org> Mime-Version: 1.0 Content-Type: text/plain Cc: Junio C Hamano , Git List To: Ramkumar Ramachandra X-From: git-owner@vger.kernel.org Tue Apr 16 11:44:39 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 1US2RI-0005nr-3o for gcvg-git-2@plane.gmane.org; Tue, 16 Apr 2013 11:44:36 +0200 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754680Ab3DPJoc (ORCPT ); Tue, 16 Apr 2013 05:44:32 -0400 Received: from mx1.imag.fr ([129.88.30.5]:52391 "EHLO shiva.imag.fr" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753442Ab3DPJob (ORCPT ); Tue, 16 Apr 2013 05:44:31 -0400 Received: from mail-veri.imag.fr (mail-veri.imag.fr [129.88.43.52]) by shiva.imag.fr (8.13.8/8.13.8) with ESMTP id r3G9i3Qc018359 (version=TLSv1/SSLv3 cipher=AES256-SHA bits=256 verify=NO); Tue, 16 Apr 2013 11:44:03 +0200 Received: from anie.imag.fr ([129.88.7.32] helo=anie) by mail-veri.imag.fr with esmtps (TLS1.0:DHE_RSA_AES_128_CBC_SHA1:16) (Exim 4.72) (envelope-from ) id 1US2Ql-0001Uy-2H; Tue, 16 Apr 2013 11:44:04 +0200 In-Reply-To: (Ramkumar Ramachandra's message of "Tue, 16 Apr 2013 14:50:15 +0530") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.2.50 (gnu/linux) X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.0.1 (shiva.imag.fr [129.88.30.5]); Tue, 16 Apr 2013 11:44:04 +0200 (CEST) X-IMAG-MailScanner-Information: Please contact MI2S MIM for more information X-MailScanner-ID: r3G9i3Qc018359 X-IMAG-MailScanner: Found to be clean X-IMAG-MailScanner-SpamCheck: X-IMAG-MailScanner-From: matthieu.moy@grenoble-inp.fr MailScanner-NULL-Check: 1366710248.9904@E9RMxBR+TxGVVV8k9USs7g Sender: git-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: git@vger.kernel.org Archived-At: Ramkumar Ramachandra writes: > If it is 0 (which means that the rebase completely successfully), pop > the stash before exiting as usual. And you're going to pop the stash even if no stash were triggered when starting the rebase. Really, think about it again: you're not going to guess whether you have to unstash without storing this information somewhere. You may argue about storing it outside the todolist, you can't unstash unconditionally. -- Matthieu Moy http://www-verimag.imag.fr/~moy/