5f494154a3
git is slow when the index file is large and has to be rewritten each time a file is changed. To speed this up, added a journal where changes are recorded before being fed into the index file and committed to the git-annex branch. The entire journal can be fed into git with just 2 commands, and only one write of the index file.
17 lines
372 B
Haskell
17 lines
372 B
Haskell
{- 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
|
|
|
|
data BranchState = BranchState {
|
|
branchUpdated :: Bool,
|
|
cachedFile :: Maybe FilePath,
|
|
cachedContent :: String
|
|
}
|
|
|
|
startBranchState :: BranchState
|
|
startBranchState = BranchState False Nothing ""
|