diff options
Diffstat (limited to 'Git/Index.hs')
-rw-r--r-- | Git/Index.hs | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/Git/Index.hs b/Git/Index.hs index d9d5b03bf..d712245a8 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" |