{"thread":{"id":"7618","subject":"git-format-patch --subject-prefix support.","startedAt":"2007-04-11T23:58:06Z","lastAt":"2007-04-12T10:04:05Z","messageCount":7,"participants":["Robin H. Johnson","Junio C Hamano","Julian Phillips"],"isPatch":false,"patchVersion":null,"patchTotal":null},"messages":[{"id":"39159","messageId":"11763358884124-git-send-email-robbat2@gentoo.org","threadId":"7618","inReplyTo":null,"subject":"git-format-patch --subject-prefix support.","fromName":"Robin H. Johnson","fromEmail":"robbat2@gentoo.org","sentAt":"2007-04-11T23:58:06Z","receivedAt":"2007-04-11T23:58:06Z","isPatch":false,"sender":{"key":"robbat2@gentoo.org","avatar":"https://avatars.githubusercontent.com/u/373898?v=4"},"body":"Add a new option to git-format-patch, entitled --subject-prefix that allows\ncontrol of the subject prefix '[PATCH]'. Using this option, the text 'PATCH' is\nreplaced with whatever input is provided to the option. This allows easily\ngenerating patches like '[PATCH 2.6.21-rc3]' or properly numbered series like\n'[-mm3 PATCH N/M]'.\n\n1/2 - Implementation and documentation\n2/2 - Test case\n"},{"id":"39160","messageId":"1176335888349-git-send-email-robbat2@gentoo.org","threadId":"7618","inReplyTo":"11763358884124-git-send-email-robbat2@gentoo.org","subject":"[PATCH 1/2] Add custom subject prefix support to format-patch (take 3)","fromName":"Robin H. Johnson","fromEmail":"robbat2@gentoo.org","sentAt":"2007-04-11T23:58:07Z","receivedAt":"2007-04-11T23:58:07Z","isPatch":true,"sender":{"key":"robbat2@gentoo.org","avatar":"https://avatars.githubusercontent.com/u/373898?v=4"},"body":"From: Robin H. Johnson <robbat2@gentoo.org>\n\nAdd a new option to git-format-patch, entitled --subject-prefix that allows\ncontrol of the subject prefix '[PATCH]'. Using this option, the text 'PATCH' is\nreplaced with whatever input is provided to the option. This allows easily\ngenerating patches like '[PATCH 2.6.21-rc3]' or properly numbered series like\n'[-mm3 PATCH N/M]'. This patch provides the implementation and documentation.\n\nSigned-off-by: Robin H. Johnson <robbat2@gentoo.org>\n---\n Documentation/git-format-patch.txt |   17 ++++++++++++-----\n builtin-log.c                      |   10 ++++++++--\n log-tree.c                         |   14 ++++++++++----\n revision.h                         |    1 +\n 4 files changed, 31 insertions(+), 11 deletions(-)\n\ndiff --git a/Documentation/git-format-patch.txt b/Documentation/git-format-patch.txt\nindex 111d7c6..9965745 100644\n--- a/Documentation/git-format-patch.txt\n+++ b/Documentation/git-format-patch.txt\n@@ -10,11 +10,12 @@ SYNOPSIS\n --------\n [verse]\n 'git-format-patch' [-n | -k] [-o <dir> | --stdout] [--thread]\n-\t           [--attach[=<boundary>] | --inline[=<boundary>]]\n-\t           [-s | --signoff] [<common diff options>] [--start-number <n>]\n-\t\t   [--in-reply-to=Message-Id] [--suffix=.<sfx>]\n-\t\t   [--ignore-if-in-upstream]\n-\t\t   <since>[..<until>]\n+                 [--attach[=<boundary>] | --inline[=<boundary>]]\n+                 [-s | --signoff] [<common diff options>]\n+                 [--start-number <n>] [--in-reply-to=Message-Id]\n+                 [--suffix=.<sfx>] [--ignore-if-in-upstream]\n+                 [--subject-prefix=Subject-Prefix]\n+                 <since>[..<until>]\n \n DESCRIPTION\n -----------\n@@ -98,6 +99,12 @@ include::diff-options.txt[]\n \tpatches being generated, and any patch that matches is\n \tignored.\n \n+--subject-prefix=<Subject-Prefix>::\n+\tInstead of the standard '[PATCH]' prefix in the subject\n+\tline, instead use '[<Subject-Prefix>]'. This\n+\tallows for useful naming of a patch series, and can be\n+\tcombined with the --numbered option.\n+\n --suffix=.<sfx>::\n \tInstead of using `.patch` as the suffix for generated\n \tfilenames, use specifed suffix.  A common alternative is\ndiff --git a/builtin-log.c b/builtin-log.c\nindex 71df957..4a4890a 100644\n--- a/builtin-log.c\n+++ b/builtin-log.c\n@@ -417,6 +417,7 @@ int cmd_format_patch(int argc, const char **argv, const char *prefix)\n \tint numbered = 0;\n \tint start_number = -1;\n \tint keep_subject = 0;\n+\tint subject_prefix = 0;\n \tint ignore_if_in_upstream = 0;\n \tint thread = 0;\n \tconst char *in_reply_to = NULL;\n@@ -434,6 +435,7 @@ int cmd_format_patch(int argc, const char **argv, const char *prefix)\n \trev.ignore_merges = 1;\n \trev.diffopt.msg_sep = \"\";\n \trev.diffopt.recursive = 1;\n+\trev.subject_prefix = \"PATCH\";\n \n \trev.extra_headers = extra_headers;\n \n@@ -509,8 +511,10 @@ int cmd_format_patch(int argc, const char **argv, const char *prefix)\n \t\t\tif (i == argc)\n \t\t\t\tdie(\"Need a Message-Id for --in-reply-to\");\n \t\t\tin_reply_to = argv[i];\n-\t\t}\n-\t\telse if (!prefixcmp(argv[i], \"--suffix=\"))\n+\t\t} else if (!prefixcmp(argv[i], \"--subject-prefix=\")) {\n+\t\t\tsubject_prefix = 1;\n+\t\t\trev.subject_prefix = argv[i] + 17;\n+\t\t} else if (!prefixcmp(argv[i], \"--suffix=\"))\n \t\t\tfmt_patch_suffix = argv[i] + 9;\n \t\telse\n \t\t\targv[j++] = argv[i];\n@@ -521,6 +525,8 @@ int cmd_format_patch(int argc, const char **argv, const char *prefix)\n \t\tstart_number = 1;\n \tif (numbered && keep_subject)\n \t\tdie (\"-n and -k are mutually exclusive.\");\n+\tif (keep_subject && subject_prefix)\n+\t\tdie (\"--subject-prefix and -k are mutually exclusive.\");\n \n \targc = setup_revisions(argc, argv, &rev, \"HEAD\");\n \tif (argc > 1)\ndiff --git a/log-tree.c b/log-tree.c\nindex 8797aa1..dad5513 100644\n--- a/log-tree.c\n+++ b/log-tree.c\n@@ -165,14 +165,20 @@ void show_log(struct rev_info *opt, const char *sep)\n \t\tif (opt->total > 0) {\n \t\t\tstatic char buffer[64];\n \t\t\tsnprintf(buffer, sizeof(buffer),\n-\t\t\t\t\t\"Subject: [PATCH %0*d/%d] \",\n+\t\t\t\t\t\"Subject: [%s %0*d/%d] \",\n+\t\t\t\t\topt->subject_prefix,\n \t\t\t\t\tdigits_in_number(opt->total),\n \t\t\t\t\topt->nr, opt->total);\n \t\t\tsubject = buffer;\n-\t\t} else if (opt->total == 0)\n-\t\t\tsubject = \"Subject: [PATCH] \";\n-\t\telse\n+\t\t} else if (opt->total == 0) {\n+\t\t\tstatic char buffer[256];\n+\t\t\tsnprintf(buffer, sizeof(buffer),\n+\t\t\t\t\t\"Subject: [%s] \",\n+\t\t\t\t\topt->subject_prefix);\n+\t\t\tsubject = buffer;\n+\t\t} else {\n \t\t\tsubject = \"Subject: \";\n+\t\t}\n \n \t\tprintf(\"From %s Mon Sep 17 00:00:00 2001\\n\", sha1);\n \t\tif (opt->message_id)\ndiff --git a/revision.h b/revision.h\nindex 55e6b53..5f3f628 100644\n--- a/revision.h\n+++ b/revision.h\n@@ -78,6 +78,7 @@ struct rev_info {\n \tconst char\t*add_signoff;\n \tconst char\t*extra_headers;\n \tconst char\t*log_reencode;\n+\tconst char\t*subject_prefix;\n \tint\t\tno_inline;\n \n \t/* Filter by commit log message */\n-- \n1.5.1\n"},{"id":"39161","messageId":"11763358881541-git-send-email-robbat2@gentoo.org","threadId":"7618","inReplyTo":"1176335888349-git-send-email-robbat2@gentoo.org","subject":"[PATCH 2/2] Add testcase for format-patch --subject-prefix (take 3)","fromName":"Robin H. Johnson","fromEmail":"robbat2@gentoo.org","sentAt":"2007-04-11T23:58:08Z","receivedAt":"2007-04-11T23:58:08Z","isPatch":true,"sender":{"key":"robbat2@gentoo.org","avatar":"https://avatars.githubusercontent.com/u/373898?v=4"},"body":"From: Robin H. Johnson <robbat2@gentoo.org>\n\nAdd testcase for format-patch --subject-prefix support.\n\nSigned-off-by: Robin H. Johnson <robbat2@gentoo.org>\n---\n t/t4013-diff-various.sh                            |    1 +\n ...tdout_--subject-prefix=TESTCASE_initial..master |  164 ++++++++++++++++++++\n 2 files changed, 165 insertions(+), 0 deletions(-)\n create mode 100644 t/t4013/diff.format-patch_--inline_--stdout_--subject-prefix=TESTCASE_initial..master\n\ndiff --git a/t/t4013-diff-various.sh b/t/t4013-diff-various.sh\nindex 488e075..8f4c29a 100755\n--- a/t/t4013-diff-various.sh\n+++ b/t/t4013-diff-various.sh\n@@ -241,6 +241,7 @@ format-patch --attach --stdout initial..master\n format-patch --inline --stdout initial..side\n format-patch --inline --stdout initial..master^\n format-patch --inline --stdout initial..master\n+format-patch --inline --stdout --subject-prefix=TESTCASE initial..master\n \n diff --abbrev initial..side\n diff -r initial..side\ndiff --git a/t/t4013/diff.format-patch_--inline_--stdout_--subject-prefix=TESTCASE_initial..master b/t/t4013/diff.format-patch_--inline_--stdout_--subject-prefix=TESTCASE_initial..master\nnew file mode 100644\nindex 0000000..a8093be\n--- /dev/null\n+++ b/t/t4013/diff.format-patch_--inline_--stdout_--subject-prefix=TESTCASE_initial..master\n@@ -0,0 +1,164 @@\n+$ git format-patch --inline --stdout --subject-prefix=TESTCASE initial..master\n+From 1bde4ae5f36c8d9abe3a0fce0c6aab3c4a12fe44 Mon Sep 17 00:00:00 2001\n+From: A U Thor <author@example.com>\n+Date: Mon, 26 Jun 2006 00:01:00 +0000\n+Subject: [TESTCASE] Second\n+MIME-Version: 1.0\n+Content-Type: multipart/mixed; boundary=\"------------g-i-t--v-e-r-s-i-o-n\"\n+\n+This is a multi-part message in MIME format.\n+--------------g-i-t--v-e-r-s-i-o-n\n+Content-Type: text/plain; charset=UTF-8; format=fixed\n+Content-Transfer-Encoding: 8bit\n+\n+\n+This is the second commit.\n+---\n+ dir/sub |    2 ++\n+ file0   |    3 +++\n+ file2   |    3 ---\n+ 3 files changed, 5 insertions(+), 3 deletions(-)\n+ delete mode 100644 file2\n+--------------g-i-t--v-e-r-s-i-o-n\n+Content-Type: text/x-patch; name=\"1bde4ae5f36c8d9abe3a0fce0c6aab3c4a12fe44.diff\"\n+Content-Transfer-Encoding: 8bit\n+Content-Disposition: inline; filename=\"1bde4ae5f36c8d9abe3a0fce0c6aab3c4a12fe44.diff\"\n+\n+diff --git a/dir/sub b/dir/sub\n+index 35d242b..8422d40 100644\n+--- a/dir/sub\n++++ b/dir/sub\n+@@ -1,2 +1,4 @@\n+ A\n+ B\n++C\n++D\n+diff --git a/file0 b/file0\n+index 01e79c3..b414108 100644\n+--- a/file0\n++++ b/file0\n+@@ -1,3 +1,6 @@\n+ 1\n+ 2\n+ 3\n++4\n++5\n++6\n+diff --git a/file2 b/file2\n+deleted file mode 100644\n+index 01e79c3..0000000\n+--- a/file2\n++++ /dev/null\n+@@ -1,3 +0,0 @@\n+-1\n+-2\n+-3\n+\n+--------------g-i-t--v-e-r-s-i-o-n--\n+\n+\n+\n+From 9a6d4949b6b76956d9d5e26f2791ec2ceff5fdc0 Mon Sep 17 00:00:00 2001\n+From: A U Thor <author@example.com>\n+Date: Mon, 26 Jun 2006 00:02:00 +0000\n+Subject: [TESTCASE] Third\n+MIME-Version: 1.0\n+Content-Type: multipart/mixed; boundary=\"------------g-i-t--v-e-r-s-i-o-n\"\n+\n+This is a multi-part message in MIME format.\n+--------------g-i-t--v-e-r-s-i-o-n\n+Content-Type: text/plain; charset=UTF-8; format=fixed\n+Content-Transfer-Encoding: 8bit\n+\n+---\n+ dir/sub |    2 ++\n+ file1   |    3 +++\n+ 2 files changed, 5 insertions(+), 0 deletions(-)\n+ create mode 100644 file1\n+--------------g-i-t--v-e-r-s-i-o-n\n+Content-Type: text/x-patch; name=\"9a6d4949b6b76956d9d5e26f2791ec2ceff5fdc0.diff\"\n+Content-Transfer-Encoding: 8bit\n+Content-Disposition: inline; filename=\"9a6d4949b6b76956d9d5e26f2791ec2ceff5fdc0.diff\"\n+\n+diff --git a/dir/sub b/dir/sub\n+index 8422d40..cead32e 100644\n+--- a/dir/sub\n++++ b/dir/sub\n+@@ -2,3 +2,5 @@ A\n+ B\n+ C\n+ D\n++E\n++F\n+diff --git a/file1 b/file1\n+new file mode 100644\n+index 0000000..b1e6722\n+--- /dev/null\n++++ b/file1\n+@@ -0,0 +1,3 @@\n++A\n++B\n++C\n+\n+--------------g-i-t--v-e-r-s-i-o-n--\n+\n+\n+\n+From c7a2ab9e8eac7b117442a607d5a9b3950ae34d5a Mon Sep 17 00:00:00 2001\n+From: A U Thor <author@example.com>\n+Date: Mon, 26 Jun 2006 00:03:00 +0000\n+Subject: [TESTCASE] Side\n+MIME-Version: 1.0\n+Content-Type: multipart/mixed; boundary=\"------------g-i-t--v-e-r-s-i-o-n\"\n+\n+This is a multi-part message in MIME format.\n+--------------g-i-t--v-e-r-s-i-o-n\n+Content-Type: text/plain; charset=UTF-8; format=fixed\n+Content-Transfer-Encoding: 8bit\n+\n+---\n+ dir/sub |    2 ++\n+ file0   |    3 +++\n+ file3   |    4 ++++\n+ 3 files changed, 9 insertions(+), 0 deletions(-)\n+ create mode 100644 file3\n+--------------g-i-t--v-e-r-s-i-o-n\n+Content-Type: text/x-patch; name=\"c7a2ab9e8eac7b117442a607d5a9b3950ae34d5a.diff\"\n+Content-Transfer-Encoding: 8bit\n+Content-Disposition: inline; filename=\"c7a2ab9e8eac7b117442a607d5a9b3950ae34d5a.diff\"\n+\n+diff --git a/dir/sub b/dir/sub\n+index 35d242b..7289e35 100644\n+--- a/dir/sub\n++++ b/dir/sub\n+@@ -1,2 +1,4 @@\n+ A\n+ B\n++1\n++2\n+diff --git a/file0 b/file0\n+index 01e79c3..f4615da 100644\n+--- a/file0\n++++ b/file0\n+@@ -1,3 +1,6 @@\n+ 1\n+ 2\n+ 3\n++A\n++B\n++C\n+diff --git a/file3 b/file3\n+new file mode 100644\n+index 0000000..7289e35\n+--- /dev/null\n++++ b/file3\n+@@ -0,0 +1,4 @@\n++A\n++B\n++1\n++2\n+\n+--------------g-i-t--v-e-r-s-i-o-n--\n+\n+\n+$\n-- \n1.5.1\n"},{"id":"39171","messageId":"7vodlumntw.fsf@assigned-by-dhcp.cox.net","threadId":"7618","inReplyTo":"11763358884124-git-send-email-robbat2@gentoo.org","subject":"Re: git-format-patch --subject-prefix support.","fromName":"Junio C Hamano","fromEmail":"junkio@cox.net","sentAt":"2007-04-12T00:35:39Z","receivedAt":"2007-04-12T00:35:39Z","isPatch":false,"sender":{"key":"gitster@pobox.com","avatar":"https://avatars.githubusercontent.com/u/54884?v=4"},"body":"\"Robin H\\. Johnson\" <robbat2@gentoo.org> writes:\n\n> Add a new option to git-format-patch, entitled --subject-prefix that allows\n> control of the subject prefix '[PATCH]'. Using this option, the text 'PATCH' is\n> replaced with whatever input is provided to the option. This allows easily\n> generating patches like '[PATCH 2.6.21-rc3]' or properly numbered series like\n> '[-mm3 PATCH N/M]'.\n>\n> 1/2 - Implementation and documentation\n> 2/2 - Test case\n\nI suspect this is a job for send-email, not format-patch.  List?\n"},{"id":"39177","messageId":"Pine.LNX.4.64.0704120150320.22924@beast.quantumfyre.co.uk","threadId":"7618","inReplyTo":"7vodlumntw.fsf@assigned-by-dhcp.cox.net","subject":"Re: git-format-patch --subject-prefix support.","fromName":"Julian Phillips","fromEmail":"julian@quantumfyre.co.uk","sentAt":"2007-04-12T00:54:20Z","receivedAt":"2007-04-12T00:54:20Z","isPatch":false,"sender":{"key":"julian@quantumfyre.co.uk","avatar":"https://avatars.githubusercontent.com/u/948888?v=4"},"body":"On Wed, 11 Apr 2007, Junio C Hamano wrote:\n\n> \"Robin H\\. Johnson\" <robbat2@gentoo.org> writes:\n>\n>> Add a new option to git-format-patch, entitled --subject-prefix that allows\n>> control of the subject prefix '[PATCH]'. Using this option, the text 'PATCH' is\n>> replaced with whatever input is provided to the option. This allows easily\n>> generating patches like '[PATCH 2.6.21-rc3]' or properly numbered series like\n>> '[-mm3 PATCH N/M]'.\n>>\n>> 1/2 - Implementation and documentation\n>> 2/2 - Test case\n>\n> I suspect this is a job for send-email, not format-patch.  List?\n\nSurely though, send-email is simply a helper for sending patches generated \nby format-patch?  Is there any reason to deny the ability to set the \nprefix to those who don't use send-email but do use format-patch? \n(Personally I found send-email to be cumbersome and confusing, so I've \nstopped using it ...)\n\nIt's format-patch that applies the current \"[PATCH]\" prefix anyway ...\n\n-- \nJulian\n\n  ---\nDeath, when unnecessary, is a tragic thing.\n \t\t-- Flint, \"Requiem for Methuselah\", stardate 5843.7\n"},{"id":"39181","messageId":"7v4pnmmk9l.fsf@assigned-by-dhcp.cox.net","threadId":"7618","inReplyTo":"Pine.LNX.4.64.0704120150320.22924@beast.quantumfyre.co.uk","subject":"Re: git-format-patch --subject-prefix support.","fromName":"Junio C Hamano","fromEmail":"junkio@cox.net","sentAt":"2007-04-12T01:52:38Z","receivedAt":"2007-04-12T01:52:38Z","isPatch":false,"sender":{"key":"gitster@pobox.com","avatar":"https://avatars.githubusercontent.com/u/54884?v=4"},"body":"Julian Phillips <julian@quantumfyre.co.uk> writes:\n\n> On Wed, 11 Apr 2007, Junio C Hamano wrote:\n>\n>> \"Robin H\\. Johnson\" <robbat2@gentoo.org> writes:\n>>\n>>> Add a new option to git-format-patch, entitled --subject-prefix that allows\n>>> control of the subject prefix '[PATCH]'. Using this option, the text 'PATCH' is\n>>> replaced with whatever input is provided to the option. This allows easily\n>>> generating patches like '[PATCH 2.6.21-rc3]' or properly numbered series like\n>>> '[-mm3 PATCH N/M]'.\n>>>\n>>> 1/2 - Implementation and documentation\n>>> 2/2 - Test case\n>>\n>> I suspect this is a job for send-email, not format-patch.  List?\n>\n> Surely though, send-email is simply a helper for sending patches\n> generated by format-patch?  Is there any reason to deny the ability to\n> set the prefix to those who don't use send-email but do use\n> format-patch? (Personally I found send-email to be cumbersome and\n> confusing, so I've stopped using it ...)\n>\n> It's format-patch that applies the current \"[PATCH]\" prefix anyway ...\n\nI was more worried about people's scripts who postprocess\nformat-patch output, relying on the '[PATCH]' to be there.  But\nthey should be using -k to suppress it anyway, so this addition\nshould be Ok.\n\nSomebody needs to verify that mailinfo groks e-mails correctly\neven when they have \"Subject: [random garbage] title\" though.\n"},{"id":"39210","messageId":"7vslb5kiy2.fsf@assigned-by-dhcp.cox.net","threadId":"7618","inReplyTo":"7v4pnmmk9l.fsf@assigned-by-dhcp.cox.net","subject":"Re: git-format-patch --subject-prefix support.","fromName":"Junio C Hamano","fromEmail":"junkio@cox.net","sentAt":"2007-04-12T10:04:05Z","receivedAt":"2007-04-12T10:04:05Z","isPatch":false,"sender":{"key":"gitster@pobox.com","avatar":"https://avatars.githubusercontent.com/u/54884?v=4"},"body":"Junio C Hamano <junkio@cox.net> writes:\n\n> Julian Phillips <julian@quantumfyre.co.uk> writes:\n>\n>> On Wed, 11 Apr 2007, Junio C Hamano wrote:\n>>\n>>> \"Robin H\\. Johnson\" <robbat2@gentoo.org> writes:\n>>>\n>>>> Add a new option to git-format-patch, entitled --subject-prefix that allows\n>>>> control of the subject prefix '[PATCH]'. Using this option, the text 'PATCH' is\n>>>> replaced with whatever input is provided to the option. This allows easily\n>>>> generating patches like '[PATCH 2.6.21-rc3]' or properly numbered series like\n>>>> '[-mm3 PATCH N/M]'.\n>>>>\n>>>> 1/2 - Implementation and documentation\n>>>> 2/2 - Test case\n\nGaah.\n\nI applied it, pushed the results out and then found breakage.\nHow much I hate these random and non-essential \"mean well to\nenhance usability\" patches X-<...\n\nIn the meantime, I think this should fix it.  Please test well.\n\n-- >8 --\nFix git {log,show,...} --pretty=email\n\nAn earlier --subject-prefix forgot that format-patch is not the\nonly codepath that added the  \"[PATCH]\" prefix, breaking\neverybody else in the log family.\n\nSigned-off-by: Junio C Hamano <junkio@cox.net>\n---\n builtin-log.c |    1 -\n revision.c    |    1 +\n 2 files changed, 1 insertions(+), 1 deletions(-)\n\ndiff --git a/builtin-log.c b/builtin-log.c\nindex 4a4890a..ffc269a 100644\n--- a/builtin-log.c\n+++ b/builtin-log.c\n@@ -435,7 +435,6 @@ int cmd_format_patch(int argc, const char **argv, const char *prefix)\n \trev.ignore_merges = 1;\n \trev.diffopt.msg_sep = \"\";\n \trev.diffopt.recursive = 1;\n-\trev.subject_prefix = \"PATCH\";\n \n \trev.extra_headers = extra_headers;\n \ndiff --git a/revision.c b/revision.c\nindex 486393c..37f1eab 100644\n--- a/revision.c\n+++ b/revision.c\n@@ -567,6 +567,7 @@ void init_revisions(struct rev_info *revs, const char *prefix)\n \trevs->min_age = -1;\n \trevs->skip_count = -1;\n \trevs->max_count = -1;\n+\trevs->subject_prefix = \"PATCH\";\n \n \trevs->prune_fn = NULL;\n \trevs->prune_data = NULL;\n"}]}