git/list[1] front-page[2] threads[3] people[4] search[5] about
 

[EGIT] [PATCH] Make sure that the commit message has Unix format line

From
Ferry Huberts (Pelagic) <ferry.huberts@pelagic.nl>
Date
Feb 11, 2009, 07:45 UTC
Message-ID
<34467.77.61.241.211.1234338327.squirrel@hupie.xs4all.nl>
>From 2ad66e099fb35ad9a0d97e553843434b68ec82c9 Mon Sep 17 00:00:00 2001 From: Ferry Huberts <ferry.huberts@pelagic.nl>
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 <ferry.huberts@pelagic.nl>
---
 .../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);
-- 
1.6.1.9.g97c34
Next: Shawn O. Pearce
Message 1 of 4 in “Make sure that the commit message has Unix format line”
  1. Ferry Huberts (Pelagic)Feb 11, 2009
  2. Shawn O. PearceFeb 11, 2009
  3. Robin RosenbergFeb 11, 2009
  4. Ferry Huberts (Pelagic)Feb 11, 2009

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.