From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Shawn O. Pearce" Subject: Re: [PATCH] Reallow git-rebase --interactive --continue if commit is unnecessary Date: Thu, 20 Dec 2007 02:31:14 -0500 Message-ID: <20071220073113.GJ14735@spearce.org> References: <87r6hias5s.fsf@gollum.intra.norang.ca> <20071220071212.GA20534@spearce.org> <7vzlw5rg53.fsf@gitster.siamese.dyndns.org> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Cc: Johannes Schindelin , Bernt Hansen , git@vger.kernel.org To: Junio C Hamano X-From: git-owner@vger.kernel.org Thu Dec 20 08:31:45 2007 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 1J5Fsd-0000yu-49 for gcvg-git-2@gmane.org; Thu, 20 Dec 2007 08:31:43 +0100 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751501AbXLTHbT (ORCPT ); Thu, 20 Dec 2007 02:31:19 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1751119AbXLTHbT (ORCPT ); Thu, 20 Dec 2007 02:31:19 -0500 Received: from corvette.plexpod.net ([64.38.20.226]:34173 "EHLO corvette.plexpod.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750838AbXLTHbS (ORCPT ); Thu, 20 Dec 2007 02:31:18 -0500 Received: from cpe-74-70-48-173.nycap.res.rr.com ([74.70.48.173] helo=asimov.home.spearce.org) by corvette.plexpod.net with esmtpa (Exim 4.68) (envelope-from ) id 1J5FsA-0001lp-Et; Thu, 20 Dec 2007 02:31:14 -0500 Received: by asimov.home.spearce.org (Postfix, from userid 1000) id 407C020FBAE; Thu, 20 Dec 2007 02:31:14 -0500 (EST) Content-Disposition: inline In-Reply-To: <7vzlw5rg53.fsf@gitster.siamese.dyndns.org> User-Agent: Mutt/1.5.11 X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - corvette.plexpod.net X-AntiAbuse: Original Domain - vger.kernel.org X-AntiAbuse: Originator/Caller UID/GID - [47 12] / [47 12] X-AntiAbuse: Sender Address Domain - spearce.org Sender: git-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: git@vger.kernel.org Archived-At: Junio C Hamano wrote: > "Shawn O. Pearce" writes: > > diff --git a/git-rebase--interactive.sh b/git-rebase--interactive.sh > > index 47581ce..39f32b1 100755 > > --- a/git-rebase--interactive.sh > > +++ b/git-rebase--interactive.sh > > @@ -372,8 +372,9 @@ do > > test ! -f "$DOTEST"/amend || git reset --soft HEAD^ > > } && > > export GIT_AUTHOR_NAME GIT_AUTHOR_EMAIL GIT_AUTHOR_DATE && > > - git commit --no-verify -F "$DOTEST"/message -e || > > + if ! git commit --no-verify -F "$DOTEST"/message -e > > die "Could not commit staged changes." > > + fi > > This looks like a syntax error to me. Whoops. This looks like a syntax error to me too. Its late. I totally missed a "then". Would you mind doing an amend? -- Shawn.