summaryrefslogtreecommitdiff
path: root/Git/Index.hs
diff options
context:
space:
mode:
Diffstat (limited to 'Git/Index.hs')
-rw-r--r--Git/Index.hs4
1 files changed, 4 insertions, 0 deletions
diff --git a/Git/Index.hs b/Git/Index.hs
index d9d5b03..d712245 100644
--- a/Git/Index.hs
+++ b/Git/Index.hs
@@ -30,3 +30,7 @@ override index = do
indexFile :: Repo -> FilePath
indexFile r = localGitDir r </> "index"
+
+{- Git locks the index by creating this file. -}
+indexFileLock :: Repo -> FilePath
+indexFileLock r = indexFile r ++ ".lock"