summary |
shortlog |
log |
commit | commitdiff |
tree
raw |
patch |
inline | side by side (from parent 1:
873a27f)
Signed-off-by: Catalin Marinas <catalin.marinas@gmail.com>
+2005-07-11 Catalin Marinas <catalin.marinas@gmail.com>
+
+ * stgit/main.py (export): Add --template option to use a different
+ file as the export template rather than the default one
+
2005-07-09 Catalin Marinas <catalin.marinas@gmail.com>
* Release 0.4
2005-07-09 Catalin Marinas <catalin.marinas@gmail.com>
* Release 0.4
print >> series, pname
# get the template
print >> series, pname
# get the template
- patch_tmpl = os.path.join(git.base_dir, 'patchexport.tmpl')
+ if options.template:
+ patch_tmpl = options.template
+ else:
+ patch_tmpl = os.path.join(git.base_dir, 'patchexport.tmpl')
if os.path.isfile(patch_tmpl):
tmpl = file(patch_tmpl).read()
else:
if os.path.isfile(patch_tmpl):
tmpl = file(patch_tmpl).read()
else:
action = 'store_true'),
make_option('-d', '--diff',
help = 'append .diff to the patch names',
action = 'store_true'),
make_option('-d', '--diff',
help = 'append .diff to the patch names',
- action = 'store_true')])
+ action = 'store_true'),
+ make_option('-t', '--template', metavar = 'FILE',
+ help = 'Use FILE as a template')])