summaryrefslogtreecommitdiff
path: root/Annex.hs
diff options
context:
space:
mode:
authorGravatar Joey Hess <joey@kitenet.net>2011-09-28 15:15:42 -0400
committerGravatar Joey Hess <joey@kitenet.net>2011-09-28 15:17:36 -0400
commitad245a6375b32a17a9aa18088ee006cad6b4c1ff (patch)
tree857f50ce714cbf667bcbb77796e806a3c7bd1985 /Annex.hs
parent4f4eaf387ab801157cb8986a9ca3542a977e9e03 (diff)
refactor catfile code
split into generic IO code, and a thin Annex wrapper
Diffstat (limited to 'Annex.hs')
-rw-r--r--Annex.hs3
1 files changed, 3 insertions, 0 deletions
diff --git a/Annex.hs b/Annex.hs
index 1517a3470..8a386a044 100644
--- a/Annex.hs
+++ b/Annex.hs
@@ -24,6 +24,7 @@ import Control.Monad.IO.Control
import Control.Applicative hiding (empty)
import qualified Git
+import Git.CatFile
import Git.Queue
import Types.Backend
import qualified Types.Remote
@@ -55,6 +56,7 @@ data AnnexState = AnnexState
, fast :: Bool
, auto :: Bool
, branchstate :: BranchState
+ , catfilehandle :: Maybe CatFileHandle
, forcebackend :: Maybe String
, forcenumcopies :: Maybe Int
, defaultkey :: Maybe String
@@ -79,6 +81,7 @@ newState gitrepo = AnnexState
, fast = False
, auto = False
, branchstate = startBranchState
+ , catfilehandle = Nothing
, forcebackend = Nothing
, forcenumcopies = Nothing
, defaultkey = Nothing