summaryrefslogtreecommitdiff
path: root/Types/BranchState.hs
blob: bc1d32e69323a19e005457a5e8c4a9e60c348347 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
{- git-annex BranchState data type
 -
 - Copyright 2011 Joey Hess <joey@kitenet.net>
 -
 - Licensed under the GNU GPL version 3 or higher.
 -}

module Types.BranchState where

import System.IO

data BranchState = BranchState {
	branchUpdated :: Bool, -- has the branch been updated this run?

	-- (from, to) handles used to talk to a git-cat-file process
	catFileHandles :: Maybe (Handle, Handle),

	-- the content of one file is cached
	cachedFile :: Maybe FilePath,
	cachedContent :: String
}

startBranchState :: BranchState
startBranchState = BranchState False Nothing Nothing ""