summary |
shortlog |
log |
commit | commitdiff |
tree
raw |
patch |
inline | side by side (from parent 1:
d6de046)
This patch adds the autosign configuration variable which is checked by
the "new" command to automatically sign the patch message.
Signed-off-by: Catalin Marinas <catalin.marinas@gmail.com>
# Automatically Bcc the address below
#autobcc = your.name@yourcompany.com
# Automatically Bcc the address below
#autobcc = your.name@yourcompany.com
+ # Automatically sign newly created patches
+ #autosign = Signed-off-by
+
# Set to 'yes' if you don't want to use the 'resolved' command.
# 'refresh' will automatically mark the conflicts as resolved
#autoresolved = no
# Set to 'yes' if you don't want to use the 'resolved' command.
# 'refresh' will automatically mark the conflicts as resolved
#autoresolved = no
from stgit import argparse, utils
from stgit.commands import common
from stgit.lib import git as gitlib, transaction
from stgit import argparse, utils
from stgit.commands import common
from stgit.lib import git as gitlib, transaction
+from stgit.config import config
help = 'create a new patch and make it the topmost one'
usage = """%prog [options] [name]
help = 'create a new patch and make it the topmost one'
usage = """%prog [options] [name]
# Add Signed-off-by: or similar.
if options.sign_str != None:
# Add Signed-off-by: or similar.
if options.sign_str != None:
+ sign_str = options.sign_str
+ else:
+ sign_str = config.get("stgit.autosign")
+
+ if sign_str != None:
- utils.add_sign_line(cd.message, options.sign_str,
+ utils.add_sign_line(cd.message, sign_str,
cd.committer.name, cd.committer.email))
if options.save_template:
cd.committer.name, cd.committer.email))
if options.save_template: