aboutsummaryrefslogtreecommitdiff
path: root/Types/BranchState.hs
diff options
context:
space:
mode:
authorGravatar Joey Hess <joey@kitenet.net>2011-06-23 11:37:26 -0400
committerGravatar Joey Hess <joey@kitenet.net>2011-06-23 11:37:26 -0400
commit5f494154a34bad7cc54915a2a408b830e8ca77be (patch)
tree2adfc75ea36e18b3655bb2dcfa94b702288fc6c5 /Types/BranchState.hs
parent23e765b67c38a9f02b3b5152e7e123819bb696de (diff)
add journaling to speed up changes to the git-annex branch
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.
Diffstat (limited to 'Types/BranchState.hs')
-rw-r--r--Types/BranchState.hs3
1 files changed, 1 insertions, 2 deletions
diff --git a/Types/BranchState.hs b/Types/BranchState.hs
index 65d0642a1..40d7f5c2c 100644
--- a/Types/BranchState.hs
+++ b/Types/BranchState.hs
@@ -9,10 +9,9 @@ module Types.BranchState where
data BranchState = BranchState {
branchUpdated :: Bool,
- branchChanged :: Bool,
cachedFile :: Maybe FilePath,
cachedContent :: String
}
startBranchState :: BranchState
-startBranchState = BranchState False False Nothing ""
+startBranchState = BranchState False Nothing ""