summaryrefslogtreecommitdiff
path: root/LocationLog.hs
diff options
context:
space:
mode:
authorGravatar Joey Hess <joey@kitenet.net>2010-10-26 16:15:29 -0400
committerGravatar Joey Hess <joey@kitenet.net>2010-10-26 16:15:29 -0400
commit24ee4439d4783cde7102f4ffd857c521367ce16f (patch)
treee675a22a20a14590e0be153a48c7facac5cf8357 /LocationLog.hs
parentef26076a5a3df9b8740883e3f7b3b68585b47ad5 (diff)
use git command queue
Diffstat (limited to 'LocationLog.hs')
-rw-r--r--LocationLog.hs6
1 files changed, 4 insertions, 2 deletions
diff --git a/LocationLog.hs b/LocationLog.hs
index 9ec71ce23..d027c4b80 100644
--- a/LocationLog.hs
+++ b/LocationLog.hs
@@ -82,12 +82,14 @@ instance Read LogLine where
undefined = ret $ LogLine (0) Undefined ""
ret v = [(v, "")]
-{- Log a change in the presence of a key's value in a repository. -}
-logChange :: Git.Repo -> Key -> UUID -> LogStatus -> IO ()
+{- Log a change in the presence of a key's value in a repository,
+ - and returns the filename of the logfile. -}
+logChange :: Git.Repo -> Key -> UUID -> LogStatus -> IO (FilePath)
logChange repo key uuid status = do
log <- logNow status uuid
ls <- readLog logfile
writeLog logfile (compactLog $ log:ls)
+ return logfile
where
logfile = logFile repo key