summaryrefslogtreecommitdiff
path: root/Annex.hs
diff options
context:
space:
mode:
authorGravatar Joey Hess <joey@kitenet.net>2011-09-01 13:35:07 -0400
committerGravatar Joey Hess <joey@kitenet.net>2011-09-01 13:35:07 -0400
commit57dd34c6be5dbc01286108fd943ff9e02956e8aa (patch)
tree7071f2ded704a447fb2918ff3e0ca4d84bac03cc /Annex.hs
parent55783d886d3300555d4b68ff7323e2365928e059 (diff)
generalize quiet flag to output type
This will allow adding other styles of output.
Diffstat (limited to 'Annex.hs')
-rw-r--r--Annex.hs7
1 files changed, 5 insertions, 2 deletions
diff --git a/Annex.hs b/Annex.hs
index 287aed875..fac5d27e4 100644
--- a/Annex.hs
+++ b/Annex.hs
@@ -10,6 +10,7 @@
module Annex (
Annex,
AnnexState(..),
+ OutputType(..),
new,
run,
eval,
@@ -48,7 +49,7 @@ data AnnexState = AnnexState
, backends :: [Backend Annex]
, remotes :: [Remote Annex]
, repoqueue :: Queue
- , quiet :: Bool
+ , output :: OutputType
, force :: Bool
, fast :: Bool
, branchstate :: BranchState
@@ -63,13 +64,15 @@ data AnnexState = AnnexState
, cipher :: Maybe Cipher
}
+data OutputType = NormalOutput | QuietOutput
+
newState :: Git.Repo -> AnnexState
newState gitrepo = AnnexState
{ repo = gitrepo
, backends = []
, remotes = []
, repoqueue = empty
- , quiet = False
+ , output = NormalOutput
, force = False
, fast = False
, branchstate = startBranchState