Skip to contentSkip to conversation

(unknown)

PATCH [email protected] 2 participants 3 messages Jun 15, 2016

lore
Share & tools
lore
#0 lore raw
Quoted 1 line

From 25cb047690dd6101527cdfa6198dd6a6f93bf095 Mon Sep 17 00:00:00 2001

From: Alejandro Mery <[email protected]>
Date: Mon, 16 Jun 2008 20:27:14 +0200
Subject: [PATCH] git-am: head -1 is obsolete and doesn't work on some new systems

http://www.opengroup.org/onlinepubs/009695399/utilities/head.html

---
 git-am.sh |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
git-am.sh +1 -1
index b48096e..797988f 100755
@@ -421,7 +421,7 @@ do
 	else
 	    action=yes
 	fi
-	FIRSTLINE=$(head -1 "$dotest/final-commit")
+	FIRSTLINE=$(head -n1 "$dotest/final-commit")
 
 	if test $action = skip
 	then
Signature · 1 line
1.5.4.3
#1 lore raw

Re: [PATCH] git-am: head -1 is obsolete and doesn't work on some new systems

Quoted 1 line · <[email protected]> writes:

From 25cb047690dd6101527cdfa6198dd6a6f93bf095 Mon Sep 17 00:00:00 2001

This line is not needed (unless you use git-send-mail, or import patch as mbox to your MUA), and it should be removed.

Quoted 3 lines

From: Alejandro Mery <[email protected]>
Date: Mon, 16 Jun 2008 20:27:14 +0200
Subject: [PATCH] git-am: head -1 is obsolete and doesn't work on some new systems

These headers should go as mailing list headers, which mean that your MUA should generate proper from (if it cannot, the From: would have to stay), and subject should go as email subject.

Quoted 1 line

http://www.opengroup.org/onlinepubs/009695399/utilities/head.html

We are not interested in theoretical POSIX compliance, see CodingGuidelines.

Patch lacks signoff line, per SubmittingPatches

: Signed-off-by: Alejandro Mery <[email protected]>

Quoted 9 lines
---
 git-am.sh |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
git-am.sh +0 -0
index b48096e..797988f 100755

git-am.sh do · line 424

Quoted 5 lines
git-am.sh +1 -1
@@ -421,7 +421,7 @@ do
 	else
 	    action=yes
 	fi
-	FIRSTLINE=$(head -1 "$dotest/final-commit")
+	FIRSTLINE=$(head -n1 "$dotest/final-commit")

For better portability it would be better use 'sed 1q' here instead.

: - FIRSTLINE=$(head -1 "$dotest/final-commit")
: + FIRSTLINE=$(sed -e 1q "$dotest/final-commit")

Quoted 5 lines
git-am.sh +0 -0
 	if test $action = skip
 	then
Signature · 1 line
1.5.4.3
Signature · 3 lines
Jakub Narebski
Poland
ShadeHawk on #git
#2 lore raw

Re: [PATCH] git-am: head -1 is obsolete and doesn't work on some new systems

Quoted 7 lines · Jakub Narebski
Quoted 1 line · <[email protected]> writes:

From 25cb047690dd6101527cdfa6198dd6a6f93bf095 Mon Sep 17 00:00:00 2001

This line is not needed (unless you use git-send-mail, or import patch as mbox to your MUA), and it should be removed.

Quoted 7 lines
Quoted 3 lines

From: Alejandro Mery <[email protected]>
Date: Mon, 16 Jun 2008 20:27:14 +0200
Subject: [PATCH] git-am: head -1 is obsolete and doesn't work on some new systems

These headers should go as mailing list headers, which mean that your MUA should generate proper from (if it cannot, the From: would have to stay), and subject should go as email subject.

I'm really sorry about this, I was trying to send what git-format-patch generated using ubuntu's nullmailer, but it didn't work as expected (no git-send-email on this thing)

I'll have to fight more before sending another patch from here.

Alejandro Mery