git/list[1] front-page[2] threads[3] people[4] search[5] about
 

[PATCH 2/3] Don't mention deprecated template variables

From
Karl Hasselström <kha@treskal.com>
Date
Nov 11, 2006, 23:31 UTC
Message-ID
<20061111233106.17760.23118.stgit@localhost>
In-Reply-To
<20061111232322.17760.26214.stgit@localhost>
From: Karl Hasselström <kha@treskal.com>

%(endofheaders)s and %(date)s are deprecated and expand to the empty string, so don't mention them in the help text.

Signed-off-by: Karl Hasselström <kha@treskal.com>
---
 stgit/commands/mail.py |   13 ++++---------
 1 files changed, 4 insertions(+), 9 deletions(-)
diff --git a/stgit/commands/mail.py b/stgit/commands/mail.py
index 78abfa4..d4fc293 100644
--- a/stgit/commands/mail.py
+++ b/stgit/commands/mail.py
@@ -52,19 +52,14 @@ SMTP authentication is also possible wit
 '--smtp-password' options, also available as configuration settings:
 'smtpuser' and 'smtppassword'.
 
-The template e-mail headers and body must be separated by
-'%(endofheaders)s' variable, which is replaced by StGIT with
-additional headers and a blank line. The patch e-mail template accepts
-the following variables:
+The patch e-mail template accepts the following variables:
 
   %(patch)s        - patch name
   %(maintainer)s   - 'authname <authemail>' as read from the config file
   %(shortdescr)s   - the first line of the patch description
   %(longdescr)s    - the rest of the patch description, after the first line
-  %(endofheaders)s - delimiter between e-mail headers and body
   %(diff)s         - unified diff of the patch
   %(diffstat)s     - diff statistics
-  %(date)s         - current date/time
   %(version)s      - ' version' string passed on the command line (or empty)
   %(prefix)s       - 'prefix ' string passed on the command line
   %(patchnr)s      - patch number
@@ -76,9 +71,9 @@ the following variables:
   %(commname)s     - committer's name
   %(commemail)s    - committer's e-mail
 
-For the preamble e-mail template, only the %(maintainer)s, %(date)s,
-%(endofheaders)s, %(version)s, %(patchnr)s, %(totalnr)s and %(number)s
-variables are supported."""
+For the preamble e-mail template, only the %(maintainer)s,
+%(version)s, %(patchnr)s, %(totalnr)s and %(number)s variables are
+supported."""
 
 options = [make_option('-a', '--all',
Previous: Catalin MarinasNext: Karl Hasselström
Message 14 of 17 in “Double From:s in StGIT's patch email template”
  1. Karl HasselströmNov 11, 2006
  2. Author name and e-mail address in .stgitrcKarl Hasselström, Nov 11, 2006
  3. Robin RosenbergNov 11, 2006
  4. Karl HasselströmNov 11, 2006
  5. Robin RosenbergNov 11, 2006
  6. Karl HasselströmNov 11, 2006
  7. Catalin MarinasNov 11, 2006
  8. 0/3 Re: Author name and e-mail address in .stgitrcKarl Hasselström, Nov 11, 2006
  9. 1/3 Ask git for author and committer nameKarl Hasselström, Nov 11, 2006
  10. Karl HasselströmNov 11, 2006
  11. Catalin MarinasDec 4, 2006
  12. Karl HasselströmDec 5, 2006
  13. Catalin MarinasDec 5, 2006
  14. 2/3 Don't mention deprecated template variablesKarl Hasselström, Nov 11, 2006
  15. 3/3 Deprecate author and committer details in stgitrcKarl Hasselström, Nov 11, 2006
  16. Karl HasselströmNov 12, 2006
  17. Karl HasselströmNov 11, 2006

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.