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

[PATCH 2/2] Ask vim to avoid backup copies of .stgit.msg

From
PGPaolo 'Blaisorblade' Giarrusso <blaisorblade@yahoo.it>
Date
Oct 27, 2005, 08:56 UTC
Message-ID
<20051027085634.2482.34870.stgit@zion.home.lan>
In-Reply-To
<20051027085622.2482.22005.stgit@zion.home.lan>
From: Paolo 'Blaisorblade' Giarrusso <blaisorblade@yahoo.it>
Do this by adding nobackup to the modeline.
Signed-off-by: Paolo 'Blaisorblade' Giarrusso <blaisorblade@yahoo.it>
---
 stgit/stack.py |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/stgit/stack.py b/stgit/stack.py
--- a/stgit/stack.py
+++ b/stgit/stack.py
@@ -88,7 +88,7 @@ def edit_file(series, string, comment, s
        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
Previous: Paolo 'Blaisorblade' Giarrusso
Message 2 of 2 in “Parse /top.old with id and when requesting diffs”
  1. 1/2 Parse /top.old with id and when requesting diffsPaolo 'Blaisorblade' Giarrusso, Oct 27, 2005
  2. 2/2 Ask vim to avoid backup copies of .stgit.msgPaolo 'Blaisorblade' Giarrusso, Oct 27, 2005

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.