From: Jean Delvare <khali@linux-fr.org>
To: Greg KH <greg@kroah.com>, Paul Jackson <pj@sgi.com>
Cc: Linus Torvalds <torvalds@osdl.org>, Andrew Morton <akpm@osdl.org>,
Jeff Garzik <jgarzik@pobox.com>,
Randy Dunlap <rdunlap@xenotime.net>,
linux-kernel@vger.kernel.org
Subject: Re: [PATCH] Document patch subject line better
Date: Mon, 3 Oct 2005 23:02:35 +0200 [thread overview]
Message-ID: <20051003230235.55516671.khali@linux-fr.org> (raw)
In-Reply-To: <20051003160452.GA9107@kroah.com>
Hi Greg, Paul,
> > Ideally either I should change my patch sending process, or I should
> > change quilt.
>
> Change quilt. I have a horrible patch to my local copy of quilt that
> adds this line, it's not hard to do.
>
> I'll work on cleaning it up and getting the change into the upstream
> version of quilt this week.
I wasn't aware of the problem, this clearly sounds like a bug to me. I
guess that picking "---" as a separator wasn't exactly a subtle choice,
but still...
The following patch fixes it for me:
Index: scripts/patchfns.in
===================================================================
RCS file: /cvsroot/quilt/quilt/scripts/patchfns.in,v
retrieving revision 1.75
diff -u -r1.75 patchfns.in
--- scripts/patchfns.in 18 Sep 2005 16:02:31 -0000 1.75
+++ scripts/patchfns.in 3 Oct 2005 20:50:23 -0000
@@ -612,7 +612,7 @@
patch_header()
{
awk '
- $1 == "***" || $1 == "---" \
+ ($1 == "***" || $1 == "---") && NF > 1 \
{ exit }
/^Index:[ \t]|^diff[ \t]|^==*$|^RCS file: |^retrieving revision [0-9]+(\.[0-9]+)*$/ \
{ eat = eat $0 "\n"
@@ -628,7 +628,7 @@
/^Index:[ \t]|^diff[ \t]|^==*$|^RCS file: |^retrieving revision [0-9]+(\.[0-9]+)*$/ \
{ eat = eat $0 "\n"
next }
- $1 == "***" || $1 == "---" \
+ ($1 == "***" || $1 == "---") && NF > 1 \
{ body=1 }
body { print eat $0
eat = ""
Comments?
This only prevents quilt from stripping the "---" line, it does NOT
add the line if it's not there. Doing so would require template
support, I know many users are interested and a few implementations
exist, waiting to be merged upstream, but it's not there right now.
Greg, if you have a better fix, just send it to the quilt-dev and I'll
get it applied.
--
Jean Delvare
next prev parent reply other threads:[~2005-10-03 21:02 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-10-03 7:29 [PATCH] Document patch subject line better Paul Jackson
2005-10-03 8:12 ` Peter Zijlstra
2005-10-03 8:42 ` Paul Jackson
2005-10-03 9:22 ` Peter Zijlstra
2005-10-03 15:06 ` Linus Torvalds
2005-10-03 15:54 ` Paul Jackson
2005-10-03 16:04 ` Greg KH
2005-10-03 21:02 ` Jean Delvare [this message]
2005-10-03 21:22 ` Greg KH
2005-10-04 3:12 ` Paul Jackson
2005-10-04 0:54 ` Paul Jackson
2005-10-03 20:40 ` Jean Delvare
2005-10-03 20:45 ` Greg KH
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=20051003230235.55516671.khali@linux-fr.org \
--to=khali@linux-fr.org \
--cc=akpm@osdl.org \
--cc=greg@kroah.com \
--cc=jgarzik@pobox.com \
--cc=linux-kernel@vger.kernel.org \
--cc=pj@sgi.com \
--cc=rdunlap@xenotime.net \
--cc=torvalds@osdl.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.