From: Junio C Hamano <junkio@cox.net>
To: "Robin H. Johnson" <robbat2@gentoo.org>
Cc: git@vger.kernel.org
Subject: Re: git-format-patch --subject-prefix support.
Date: Thu, 12 Apr 2007 03:04:05 -0700 [thread overview]
Message-ID: <7vslb5kiy2.fsf@assigned-by-dhcp.cox.net> (raw)
In-Reply-To: <7v4pnmmk9l.fsf@assigned-by-dhcp.cox.net> (Junio C. Hamano's message of "Wed, 11 Apr 2007 18:52:38 -0700")
Junio C Hamano <junkio@cox.net> writes:
> Julian Phillips <julian@quantumfyre.co.uk> writes:
>
>> On Wed, 11 Apr 2007, Junio C Hamano wrote:
>>
>>> "Robin H\. Johnson" <robbat2@gentoo.org> writes:
>>>
>>>> Add a new option to git-format-patch, entitled --subject-prefix that allows
>>>> control of the subject prefix '[PATCH]'. Using this option, the text 'PATCH' is
>>>> replaced with whatever input is provided to the option. This allows easily
>>>> generating patches like '[PATCH 2.6.21-rc3]' or properly numbered series like
>>>> '[-mm3 PATCH N/M]'.
>>>>
>>>> 1/2 - Implementation and documentation
>>>> 2/2 - Test case
Gaah.
I applied it, pushed the results out and then found breakage.
How much I hate these random and non-essential "mean well to
enhance usability" patches X-<...
In the meantime, I think this should fix it. Please test well.
-- >8 --
Fix git {log,show,...} --pretty=email
An earlier --subject-prefix forgot that format-patch is not the
only codepath that added the "[PATCH]" prefix, breaking
everybody else in the log family.
Signed-off-by: Junio C Hamano <junkio@cox.net>
---
builtin-log.c | 1 -
revision.c | 1 +
2 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/builtin-log.c b/builtin-log.c
index 4a4890a..ffc269a 100644
--- a/builtin-log.c
+++ b/builtin-log.c
@@ -435,7 +435,6 @@ int cmd_format_patch(int argc, const char **argv, const char *prefix)
rev.ignore_merges = 1;
rev.diffopt.msg_sep = "";
rev.diffopt.recursive = 1;
- rev.subject_prefix = "PATCH";
rev.extra_headers = extra_headers;
diff --git a/revision.c b/revision.c
index 486393c..37f1eab 100644
--- a/revision.c
+++ b/revision.c
@@ -567,6 +567,7 @@ void init_revisions(struct rev_info *revs, const char *prefix)
revs->min_age = -1;
revs->skip_count = -1;
revs->max_count = -1;
+ revs->subject_prefix = "PATCH";
revs->prune_fn = NULL;
revs->prune_data = NULL;
prev parent reply other threads:[~2007-04-12 10:04 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-04-11 23:58 git-format-patch --subject-prefix support Robin H. Johnson
2007-04-11 23:58 ` [PATCH 1/2] Add custom subject prefix support to format-patch (take 3) Robin H. Johnson
2007-04-11 23:58 ` [PATCH 2/2] Add testcase for format-patch --subject-prefix " Robin H. Johnson
2007-04-12 0:35 ` git-format-patch --subject-prefix support Junio C Hamano
2007-04-12 0:54 ` Julian Phillips
2007-04-12 1:52 ` Junio C Hamano
2007-04-12 10:04 ` Junio C Hamano [this message]
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=7vslb5kiy2.fsf@assigned-by-dhcp.cox.net \
--to=junkio@cox.net \
--cc=git@vger.kernel.org \
--cc=robbat2@gentoo.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).