2011-06-22 19:58:30 +00:00
|
|
|
{- git-annex BranchState data type
|
|
|
|
-
|
2015-01-21 16:50:09 +00:00
|
|
|
- Copyright 2011 Joey Hess <id@joeyh.name>
|
2011-06-22 19:58:30 +00:00
|
|
|
-
|
2019-03-13 19:48:14 +00:00
|
|
|
- Licensed under the GNU AGPL version 3 or higher.
|
2011-06-22 19:58:30 +00:00
|
|
|
-}
|
|
|
|
|
|
|
|
module Types.BranchState where
|
|
|
|
|
2012-12-20 03:41:54 +00:00
|
|
|
data BranchState = BranchState
|
2020-04-09 17:54:43 +00:00
|
|
|
{ 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
|
|
|
}
|
2011-06-22 19:58:30 +00:00
|
|
|
|
|
|
|
startBranchState :: BranchState
|
2020-04-09 17:54:43 +00:00
|
|
|
startBranchState = BranchState False False False False
|