experimentally, removing all actual git committing

Idea is the user will commit when ready, just stage everything.
This commit is contained in:
Joey Hess 2010-10-18 01:52:06 -04:00
parent 939a6f860e
commit 4b1086cc7d
4 changed files with 9 additions and 43 deletions

View file

@ -80,14 +80,12 @@ 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,
- and return the log filename. -}
logChange :: Git.Repo -> Key -> UUID -> LogStatus -> IO FilePath
{- Log a change in the presence of a key's value in a repository. -}
logChange :: Git.Repo -> Key -> UUID -> LogStatus -> IO ()
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