{"thread":{"id":"8530","subject":"[StGIT PATCH 2/2] Have mail take the default for --prefix from stgit.mail.prefix.","startedAt":"2007-06-09T17:25:21Z","lastAt":"2007-06-09T17:25:26Z","messageCount":2,"participants":["Yann Dirson"],"isPatch":true,"patchVersion":1,"patchTotal":2},"messages":[{"id":"44457","messageId":"20070609172520.30912.80799.stgit@gandelf.nowhere.earth","threadId":"8530","inReplyTo":null,"subject":"[StGIT PATCH 1/2] Have series show empty hidden patches as hidden rather than empty.","fromName":"Yann Dirson","fromEmail":"ydirson@altern.org","sentAt":"2007-06-09T17:25:21Z","receivedAt":"2007-06-09T17:25:21Z","isPatch":true,"sender":{"key":"ydirson@altern.org","avatar":"https://avatars.githubusercontent.com/u/1190950?v=4"},"body":"It is probably more important to show the hidden status of an empty\npatch, since \"clean\" will not delete it anyway, and the display would\nbe ambiguous for a patch tagged \"0\" just before a patch tagged \"!\".\n---\n\n stgit/commands/series.py |    2 +-\n 1 files changed, 1 insertions(+), 1 deletions(-)\n\ndiff --git a/stgit/commands/series.py b/stgit/commands/series.py\nindex 402356c..fe4e468 100644\n--- a/stgit/commands/series.py\n+++ b/stgit/commands/series.py\n@@ -215,4 +215,4 @@ def func(parser, options, args):\n             __print_patch(p, branch_str, '- ', '0 ', max_len, options)\n \n         for p in hidden:\n-            __print_patch(p, branch_str, '! ', '0 ', max_len, options)\n+            __print_patch(p, branch_str, '! ', '! ', max_len, options)\n"},{"id":"44456","messageId":"20070609172526.30912.56153.stgit@gandelf.nowhere.earth","threadId":"8530","inReplyTo":"20070609172520.30912.80799.stgit@gandelf.nowhere.earth","subject":"[StGIT PATCH 2/2] Have mail take the default for --prefix from stgit.mail.prefix.","fromName":"Yann Dirson","fromEmail":"ydirson@altern.org","sentAt":"2007-06-09T17:25:26Z","receivedAt":"2007-06-09T17:25:26Z","isPatch":true,"sender":{"key":"ydirson@altern.org","avatar":"https://avatars.githubusercontent.com/u/1190950?v=4"},"body":"It is more convenient to set the prefix once and for all in the config\nfile than each time on command line.\n---\n\n stgit/commands/mail.py |   12 ++++++++++--\n 1 files changed, 10 insertions(+), 2 deletions(-)\n\ndiff --git a/stgit/commands/mail.py b/stgit/commands/mail.py\nindex cec1828..899cb1a 100644\n--- a/stgit/commands/mail.py\n+++ b/stgit/commands/mail.py\n@@ -296,7 +296,11 @@ def __build_cover(tmpl, total_nr, msg_id, options):\n     if options.prefix:\n         prefix_str = options.prefix + ' '\n     else:\n-        prefix_str = ''\n+        confprefix = config.get('stgit.mail.prefix')\n+        if confprefix:\n+            prefix_str = confprefix + ' '\n+        else:\n+            prefix_str = ''\n         \n     total_nr_str = str(total_nr)\n     patch_nr_str = '0'.zfill(len(total_nr_str))\n@@ -374,7 +378,11 @@ def __build_message(tmpl, patch, patch_nr, total_nr, msg_id, ref_id, options):\n     if options.prefix:\n         prefix_str = options.prefix + ' '\n     else:\n-        prefix_str = ''\n+        confprefix = config.get('stgit.mail.prefix')\n+        if confprefix:\n+            prefix_str = confprefix + ' '\n+        else:\n+            prefix_str = ''\n         \n     if options.diff_opts:\n         diff_flags = options.diff_opts.split()\n"}]}