From mboxrd@z Thu Jan 1 00:00:00 1970 From: Matthieu Moy Subject: Re: [PATCHv6 1/3] git-rebase -i: add command "drop" to remove a commit Date: Tue, 23 Jun 2015 21:07:33 +0200 Message-ID: References: <1435009369-11496-1-git-send-email-remi.galan-alfonso@ensimag.grenoble-inp.fr> <1637608183.731706.1435086079947.JavaMail.zimbra@ensimag.grenoble-inp.fr> Mime-Version: 1.0 Content-Type: text/plain Cc: Eric Sunshine , Git List , Remi Lespinet , Guillaume Pages , Louis-Alexandre Stuber , Antoine Delaite , Junio C Hamano To: Remi Galan Alfonso X-From: git-owner@vger.kernel.org Tue Jun 23 21:07:47 2015 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 1Z7TXu-0001fI-FH for gcvg-git-2@plane.gmane.org; Tue, 23 Jun 2015 21:07:46 +0200 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S933124AbbFWTHn (ORCPT ); Tue, 23 Jun 2015 15:07:43 -0400 Received: from mx1.imag.fr ([129.88.30.5]:48309 "EHLO shiva.imag.fr" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932805AbbFWTHl (ORCPT ); Tue, 23 Jun 2015 15:07:41 -0400 Received: from clopinette.imag.fr (clopinette.imag.fr [129.88.34.215]) by shiva.imag.fr (8.13.8/8.13.8) with ESMTP id t5NJ7V0n032160 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Tue, 23 Jun 2015 21:07:32 +0200 Received: from anie.imag.fr (anie.imag.fr [129.88.7.32]) by clopinette.imag.fr (8.13.8/8.13.8) with ESMTP id t5NJ7XPr010852; Tue, 23 Jun 2015 21:07:33 +0200 In-Reply-To: <1637608183.731706.1435086079947.JavaMail.zimbra@ensimag.grenoble-inp.fr> (Remi Galan Alfonso's message of "Tue, 23 Jun 2015 21:01:19 +0200 (CEST)") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3 (gnu/linux) X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.0.1 (shiva.imag.fr [129.88.30.5]); Tue, 23 Jun 2015 21:07:32 +0200 (CEST) X-IMAG-MailScanner-Information: Please contact MI2S MIM for more information X-MailScanner-ID: t5NJ7V0n032160 X-IMAG-MailScanner: Found to be clean X-IMAG-MailScanner-SpamCheck: X-IMAG-MailScanner-From: matthieu.moy@grenoble-inp.fr MailScanner-NULL-Check: 1435691252.709@vRyn2mcnKBO54rtAfWHtiA Sender: git-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: git@vger.kernel.org Archived-At: Remi Galan Alfonso writes: > Eric Sunshine writes: >> > +test_rebase_end () { >> > + test_when_finished "git checkout master && >> > + git branch -D $1 && >> > + test_might_fail git rebase --abort" && >> > + git checkout -b $1 master >> > +} >> >> The way this is indented makes it difficult to see that lines 2 and 3 >> are continuations of 1. Perhaps format it like this instead? >> >> test_rebase_end () { >> test_when_finished "git checkout master && >> git branch -D $1 && >> test_might_fail git rebase --abort" && >> git checkout -b $1 master >> } > > I completely agree with you, moreover it was indented like this before. > I'll change it in my local version for now. Perhaps to avoid confusion, stg like: test_when_finished " ... && ... " && git checkout (the closing " alone on its line) -- Matthieu Moy http://www-verimag.imag.fr/~moy/