diff options
author | 2012-09-15 20:46:38 -0400 | |
---|---|---|
committer | 2012-09-15 20:46:38 -0400 | |
commit | ba0334116cd8811d49b96cd39dd83e565e0bedb7 (patch) | |
tree | 03b269a40b0b629a916f30665ccd1cf969f36589 /Annex/Content.hs | |
parent | 9a9b4b840e81198b85db72920ac88748ae3e6b6d (diff) |
more descriptive name for oneshot
Diffstat (limited to 'Annex/Content.hs')
-rw-r--r-- | Annex/Content.hs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Annex/Content.hs b/Annex/Content.hs index e944ea62f..fab27d88a 100644 --- a/Annex/Content.hs +++ b/Annex/Content.hs @@ -298,9 +298,9 @@ getKeysPresent = liftIO . traverse (2 :: Int) =<< fromRepo gitAnnexObjectDir - especially if performing a short-lived action. -} saveState :: Bool -> Annex () -saveState oneshot = doSideAction $ do +saveState nocommit = doSideAction $ do Annex.Queue.flush - unless oneshot $ + unless nocommit $ whenM alwayscommit $ Annex.Branch.commit "update" where |