git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* .swp files
@ 2021-09-21 20:27 S R Wright
  2021-09-21 20:53 ` Jeff King
  0 siblings, 1 reply; 2+ messages in thread
From: S R Wright @ 2021-09-21 20:27 UTC (permalink / raw)
  To: git

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!

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: .swp files
  2021-09-21 20:27 .swp files S R Wright
@ 2021-09-21 20:53 ` Jeff King
  0 siblings, 0 replies; 2+ messages in thread
From: Jeff King @ 2021-09-21 20:53 UTC (permalink / raw)
  To: S R Wright; +Cc: git

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

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2021-09-21 20:53 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2021-09-21 20:27 .swp files S R Wright
2021-09-21 20:53 ` Jeff King

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).