[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

prevent vc-git.el from unnecessarily locking .git/index.lock

From: Ami Fischman
Subject: prevent vc-git.el from unnecessarily locking .git/index.lock
Date: Thu, 1 Mar 2012 08:16:10 -0800

Problem: starting with 15b73245 vc-git-state (and thus anything that puts a file's git VC state in the modeline) causes the git index to be locked periodically by emacs, even though it doesn't need to.  This causes rebases (or any other index-lock-needing operation) run by the user in the same repository to fail, when the locks collide.
Proposed solution: the attached patch makes locking the index more selective.


Attachment: 0001-vc-git-state-don-t-git-add-refresh-except-if-no-diff.patch
Description: Text Data

reply via email to

[Prev in Thread] Current Thread [Next in Thread]