From: Paolo \'Blaisorblade\' Giarrusso Date: Thu, 27 Oct 2005 08:56:34 +0000 (+0200) Subject: Ask vim to avoid backup copies of .stgit.msg X-Git-Tag: v0.8~56 X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~mdw/git/stgit/commitdiff_plain/b83e37e0e6ebeee860f72603333a326994210472 Ask vim to avoid backup copies of .stgit.msg From: Paolo 'Blaisorblade' Giarrusso Do this by adding nobackup to the modeline. Signed-off-by: Paolo 'Blaisorblade' Giarrusso --- diff --git a/stgit/stack.py b/stgit/stack.py index c7cbdc5..b6cab0a 100644 --- a/stgit/stack.py +++ b/stgit/stack.py @@ -88,7 +88,7 @@ def edit_file(series, string, comment, show_patch = True): git.diff([], series.get_patch(series.get_current()).get_bottom(), None, f) #Vim modeline must be near the end. - print >> f, __comment_prefix, 'vi: set textwidth=75 filetype=diff:' + print >> f, __comment_prefix, 'vi: set textwidth=75 filetype=diff nobackup:' f.close() # the editor