avoid empty commits

This commit is contained in:
Joey Hess 2010-10-14 23:52:45 -04:00
parent c977b6b1f3
commit bbbe9858fe
4 changed files with 16 additions and 9 deletions

View file

@ -178,7 +178,8 @@ logStatus key status = do
g <- Annex.gitRepo
u <- getUUID g
f <- liftIO $ logChange g key u status
liftIO $ Git.run g ["add", f] -- committed at shutdown
liftIO $ Git.run g ["add", f]
Annex.flagChange NeedCommit True
inBackend file yes no = do
r <- liftIO $ Backend.lookupFile file