diff options
author | Joey Hess <joey@kitenet.net> | 2010-10-17 12:08:59 -0400 |
---|---|---|
committer | Joey Hess <joey@kitenet.net> | 2010-10-17 12:08:59 -0400 |
commit | 76ba2d003072da67bd9b0fb5b84bf7a268a956ee (patch) | |
tree | de6220b84b630041ced52b50b8dd84fb58804424 /Core.hs | |
parent | ae4d20d157eb288046dddf4555bfc9f2660ed675 (diff) |
reorg
Diffstat (limited to 'Core.hs')
-rw-r--r-- | Core.hs | 10 |
1 files changed, 10 insertions, 0 deletions
@@ -10,6 +10,7 @@ import System.Path import Types import Locations +import LocationLog import UUID import qualified GitRepo as Git import qualified Annex @@ -94,3 +95,12 @@ calcGitLink file key = do Nothing -> error $ "unable to normalize " ++ file return $ (relPathDirToDir (parentDir absfile) (Git.workTree g)) ++ annexLocationRelative g key + +{- Updates the LocationLog when a key's presence changes. -} +logStatus :: Key -> LogStatus -> Annex () +logStatus key status = do + g <- Annex.gitRepo + u <- getUUID g + f <- liftIO $ logChange g key u status + gitAdd f Nothing -- all logs are committed at end + |