.swp files

2 messages, 2 authors, 2021-09-21 · open the first message on its own page

.swp files

From: S R Wright <hidden>
Date: 2021-09-21 20:27:05

When git creates index.lock in the local .git directory,  does it also 
create .index.lock.swp (or any other .swp file)?  If so, can this 
behaviour be disabled?  VIM does this,  but it can be disabled.  Thanks!

Re: .swp files

From: Jeff King <hidden>
Date: 2021-09-21 20:53:36

On Tue, Sep 21, 2021 at 03:27:01PM -0500, S R Wright wrote:
When git creates index.lock in the local .git directory,  does it also
create .index.lock.swp (or any other .swp file)?  If so, can this behaviour
be disabled?  VIM does this,  but it can be disabled.  Thanks!
No, it doesn't. Git will create index.lock, and then rename it into
place as "index" when its fully written. If something is creating a
".swp" variant, it is outside of Git (e.g., if somebody opened the file
with vim).

-Peff
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help