From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Shawn O. Pearce" Subject: Re: [EGIT] [PATCH] Make sure that the commit message has Unix format line Date: Wed, 11 Feb 2009 08:13:46 -0800 Message-ID: <20090211161346.GD30949@spearce.org> References: <34467.77.61.241.211.1234338327.squirrel@hupie.xs4all.nl> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Cc: git@vger.kernel.org To: "Ferry Huberts (Pelagic)" X-From: git-owner@vger.kernel.org Wed Feb 11 17:15:24 2009 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 1LXHk1-00018h-Sl for gcvg-git-2@gmane.org; Wed, 11 Feb 2009 17:15:14 +0100 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755475AbZBKQNr (ORCPT ); Wed, 11 Feb 2009 11:13:47 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1753559AbZBKQNr (ORCPT ); Wed, 11 Feb 2009 11:13:47 -0500 Received: from george.spearce.org ([209.20.77.23]:59255 "EHLO george.spearce.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755302AbZBKQNq (ORCPT ); Wed, 11 Feb 2009 11:13:46 -0500 Received: by george.spearce.org (Postfix, from userid 1001) id 28FAB38210; Wed, 11 Feb 2009 16:13:46 +0000 (UTC) Content-Disposition: inline In-Reply-To: <34467.77.61.241.211.1234338327.squirrel@hupie.xs4all.nl> User-Agent: Mutt/1.5.17+20080114 (2008-01-14) Sender: git-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: git@vger.kernel.org Archived-At: "Ferry Huberts (Pelagic)" wrote: > From 2ad66e099fb35ad9a0d97e553843434b68ec82c9 Mon Sep 17 00:00:00 2001 From: Ferry Huberts > Date: Wed, 11 Feb 2009 08:29:36 +0100 > Subject: [PATCH] Make sure that the commit message has Unix format line delimiters > > Signed-off-by: Ferry Huberts Doesn't this change that I committed yesterday also fix this? commit 72cb3bd763f17a7d9894a8443e05965ff5e77157 Author: Shawn O. Pearce Date: Tue Feb 10 09:13:06 2009 -0800 Append Signed-off-by text in the commit message editor The user can see and edit the Signed-off-by line in the commit dialog before committing. Toggling the existing checkbox now updates the message to add or remove the user's Signed-off-by line, displaying the final message. Updating the committer name and/or email also updates the Signed-off-by line if it is present. For new lines in the commit dialog, use Text.DELIMITER for platform neutrality. Signed-off-by: Yann Simon Signed-off-by: Shawn O. Pearce Speaking of which, #@!*#@@!*@!!@@!#*, I amended the commit with something yesterday and it whacked Yann Simon off as the author of that patch and switch it to me. Crap. > .../egit/ui/internal/actions/CommitAction.java | 2 +- > 1 files changed, 1 insertions(+), 1 deletions(-) > > diff --git a/org.spearce.egit.ui/src/org/spearce/egit/ui/internal/actions/CommitAction.java > b/org.spearce.egit.ui/src/org/spearce/egit/ui/internal/actions/CommitAction.java index 5996596..a14011a 100644 --- > a/org.spearce.egit.ui/src/org/spearce/egit/ui/internal/actions/CommitAction.java +++ > b/org.spearce.egit.ui/src/org/spearce/egit/ui/internal/actions/CommitAction.java @@ -128,7 +128,7 @@ public void > run(IAction act) { > if (commitDialog.open() != IDialogConstants.OK_ID) > return; > > - String commitMessage = commitDialog.getCommitMessage(); > + String commitMessage = commitDialog.getCommitMessage().replaceAll("\n\r|\r\n", "\n"); > amending = commitDialog.isAmending(); > try { > performCommit(commitDialog, commitMessage); -- Shawn.