summaryrefslogtreecommitdiff
path: root/Locations.hs
diff options
context:
space:
mode:
authorGravatar Joey Hess <joeyh@joeyh.name>2015-12-07 13:42:03 -0400
committerGravatar Joey Hess <joeyh@joeyh.name>2015-12-07 14:35:37 -0400
commitd71bdba6009d522db726121b17980a3d32919f74 (patch)
tree7ba7471e865781f8dd0e67b217b9e6fb20de634d /Locations.hs
parent386b62174bcf97b3c319e786130da8ce617dff23 (diff)
associated files database
Diffstat (limited to 'Locations.hs')
-rw-r--r--Locations.hs10
1 files changed, 10 insertions, 0 deletions
diff --git a/Locations.hs b/Locations.hs
index ba6115155..6082957c7 100644
--- a/Locations.hs
+++ b/Locations.hs
@@ -29,6 +29,8 @@ module Locations (
gitAnnexBadDir,
gitAnnexBadLocation,
gitAnnexUnusedLog,
+ gitAnnexAssociatedFilesDb,
+ gitAnnexAssociatedFilesDbLock,
gitAnnexFsckState,
gitAnnexFsckDbDir,
gitAnnexFsckDbLock,
@@ -237,6 +239,14 @@ gitAnnexBadLocation key r = gitAnnexBadDir r </> keyFile key
gitAnnexUnusedLog :: FilePath -> Git.Repo -> FilePath
gitAnnexUnusedLog prefix r = gitAnnexDir r </> (prefix ++ "unused")
+{- .git/annex/map/ contains a database for the associated files map -}
+gitAnnexAssociatedFilesDb :: Git.Repo -> FilePath
+gitAnnexAssociatedFilesDb r = gitAnnexDir r </> "map"
+
+{- Lock file for the associated files map database. -}
+gitAnnexAssociatedFilesDbLock :: Git.Repo -> FilePath
+gitAnnexAssociatedFilesDbLock r = gitAnnexAssociatedFilesDb r ++ "lck"
+
{- .git/annex/fsck/uuid/ is used to store information about incremental
- fscks. -}
gitAnnexFsckDir :: UUID -> Git.Repo -> FilePath