All of lore.kernel.org
 help / color / mirror / Atom feed
* [EGIT] [PATCH] Make sure that the commit message has Unix format    line
@ 2009-02-11  7:45 Ferry Huberts (Pelagic)
  2009-02-11 16:13 ` Shawn O. Pearce
  0 siblings, 1 reply; 4+ messages in thread
From: Ferry Huberts (Pelagic) @ 2009-02-11  7:45 UTC (permalink / raw)
  To: git

>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

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [EGIT] [PATCH] Make sure that the commit message has Unix format line
  2009-02-11  7:45 [EGIT] [PATCH] Make sure that the commit message has Unix format line Ferry Huberts (Pelagic)
@ 2009-02-11 16:13 ` Shawn O. Pearce
  2009-02-11 17:53   ` Robin Rosenberg
  2009-02-11 18:14   ` Ferry Huberts (Pelagic)
  0 siblings, 2 replies; 4+ messages in thread
From: Shawn O. Pearce @ 2009-02-11 16:13 UTC (permalink / raw)
  To: Ferry Huberts (Pelagic); +Cc: git

"Ferry Huberts (Pelagic)" <ferry.huberts@pelagic.nl> wrote:
> 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>

Doesn't this change that I committed yesterday also fix this?

  commit 72cb3bd763f17a7d9894a8443e05965ff5e77157
  Author: Shawn O. Pearce <spearce@spearce.org>
  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 <yann.simon.fr@gmail.com>
    Signed-off-by: Shawn O. Pearce <spearce@spearce.org>

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.

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [EGIT] [PATCH] Make sure that the commit message has Unix format line
  2009-02-11 16:13 ` Shawn O. Pearce
@ 2009-02-11 17:53   ` Robin Rosenberg
  2009-02-11 18:14   ` Ferry Huberts (Pelagic)
  1 sibling, 0 replies; 4+ messages in thread
From: Robin Rosenberg @ 2009-02-11 17:53 UTC (permalink / raw)
  To: Shawn O. Pearce; +Cc: Ferry Huberts (Pelagic), git

onsdag 11 februari 2009 17:13:46 skrev Shawn O. Pearce:
> "Ferry Huberts (Pelagic)" <ferry.huberts@pelagic.nl> wrote:
> > 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>
> 
> Doesn't this change that I committed yesterday also fix this?

It does, so this patch is redundant. I also thing Yann's patch was the
correct place for the handling the problem.

-- robin

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [EGIT] [PATCH] Make sure that the commit message has Unix format line
  2009-02-11 16:13 ` Shawn O. Pearce
  2009-02-11 17:53   ` Robin Rosenberg
@ 2009-02-11 18:14   ` Ferry Huberts (Pelagic)
  1 sibling, 0 replies; 4+ messages in thread
From: Ferry Huberts (Pelagic) @ 2009-02-11 18:14 UTC (permalink / raw)
  To: Shawn O. Pearce; +Cc: git

Shawn O. Pearce wrote:
> "Ferry Huberts (Pelagic)" <ferry.huberts@pelagic.nl> wrote:
>   
>> 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>
>>     
>
> Doesn't this change that I committed yesterday also fix this?
>
>   commit 72cb3bd763f17a7d9894a8443e05965ff5e77157
>   Author: Shawn O. Pearce <spearce@spearce.org>
>   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 <yann.simon.fr@gmail.com>
>     Signed-off-by: Shawn O. Pearce <spearce@spearce.org>
>
> 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);
>>     
>
>   
I'm sorry about that. Appearently I was working with an out of date
repository and plugin.
  I also agree that fixing it in the getter is a better idea.
This was my first patch for egit, looking forward to more. I'll try to
double check better though :-)

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2009-02-11 18:15 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-02-11  7:45 [EGIT] [PATCH] Make sure that the commit message has Unix format line Ferry Huberts (Pelagic)
2009-02-11 16:13 ` Shawn O. Pearce
2009-02-11 17:53   ` Robin Rosenberg
2009-02-11 18:14   ` Ferry Huberts (Pelagic)

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.