associated files database

This commit is contained in:
Joey Hess 2015-12-07 13:42:03 -04:00
parent 63c466449f
commit a6e5ee0d0e
Failed to extract signature
3 changed files with 105 additions and 1 deletions

View file

@ -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