git-annex/Types/BranchState.hs

25 lines
707 B
Haskell
Raw Normal View History

{- git-annex BranchState data type
-
- Copyright 2011 Joey Hess <id@joeyh.name>
-
- Licensed under the GNU AGPL version 3 or higher.
-}
module Types.BranchState where
2012-12-20 03:41:54 +00:00
data BranchState = BranchState
{ branchUpdated :: Bool
-- ^ has the branch been updated this run?
, indexChecked :: Bool
-- ^ has the index file been checked to exist?
, journalIgnorable :: Bool
-- ^ can reading the journal be skipped, while still getting
-- sufficiently up-to-date information from the branch?
, journalNeverIgnorable :: Bool
-- ^ should the journal always be read even if it would normally
-- be safe to skip it?
2012-12-20 03:41:54 +00:00
}
startBranchState :: BranchState
startBranchState = BranchState False False False False