X-Git-Url: https://git.distorted.org.uk/~mdw/stgit/blobdiff_plain/bcfe759bc421f8e3b5b5866434948b0e406f9a60..94d1886878f54807b7c2be9eec9410723c04f2f2:/stgit/commands/export.py diff --git a/stgit/commands/export.py b/stgit/commands/export.py index e7de902..fbf5690 100644 --- a/stgit/commands/export.py +++ b/stgit/commands/export.py @@ -31,8 +31,9 @@ usage = """%prog [options] [] Export the applied patches into a given directory (defaults to 'patches') in a standard unified GNU diff format. A template file -(defaulting to '.git/patchexport.tmpl or -/usr/share/stgit/templates/patchexport.tmpl') can be used for the +(defaulting to '.git/patchexport.tmpl' or +'~/.stgit/templates/patchexport.tmpl' or +'/usr/share/stgit/templates/patchexport.tmpl') can be used for the patch format. The following variables are supported in the template file: @@ -145,8 +146,10 @@ def func(parser, options, args): patch_tmpl_list = [] patch_tmpl_list += [os.path.join(basedir.get(), 'patchexport.tmpl'), + os.path.join(os.path.expanduser('~'), '.stgit', 'templates', + 'patchexport.tmpl'), os.path.join(sys.prefix, - 'share/stgit/templates/patchexport.tmpl')] + 'share', 'stgit', 'templates', 'patchexport.tmpl')] tmpl = '' for patch_tmpl in patch_tmpl_list: if os.path.isfile(patch_tmpl):