From: Jakub Narebski <jnareb@gmail.com>
To: Alejandro Mery <amery@geeks.cl>
Cc: git@vger.kernel.org
Subject: Re: [PATCH] git-am: head -1 is obsolete and doesn't work on some new systems
Date: Mon, 16 Jun 2008 13:26:42 -0700 (PDT) [thread overview]
Message-ID: <m3tzftnn28.fsf@localhost.localdomain> (raw)
In-Reply-To: <1213646544.908600.7895.nullmailer@rafaella.geeks.cl>
<amery@geeks.cl> 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.
> From: Alejandro Mery <amery@geeks.cl>
> 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.
> 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 <amery@geeks.cl>
> ---
> git-am.sh | 2 +-
> 1 files changed, 1 insertions(+), 1 deletions(-)
>
> diff --git a/git-am.sh b/git-am.sh
> index b48096e..797988f 100755
> --- a/git-am.sh
> +++ b/git-am.sh
> @@ -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")
> if test $action = skip
> then
> --
> 1.5.4.3
>
--
Jakub Narebski
Poland
ShadeHawk on #git
next prev parent reply other threads:[~2008-06-16 20:27 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-06-16 20:02 (unknown) amery
2008-06-16 20:26 ` Jakub Narebski [this message]
2008-06-16 20:43 ` [PATCH] git-am: head -1 is obsolete and doesn't work on some new systems Alejandro Mery
-- strict thread matches above, loose matches on Subject: below --
2008-06-17 11:43 Alejandro Mery
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=m3tzftnn28.fsf@localhost.localdomain \
--to=jnareb@gmail.com \
--cc=amery@geeks.cl \
--cc=git@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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.