summaryrefslogtreecommitdiff
path: root/Annex.hs
diff options
context:
space:
mode:
authorGravatar Joey Hess <joey@kitenet.net>2014-02-28 14:54:02 -0400
committerGravatar Joey Hess <joey@kitenet.net>2014-02-28 14:54:02 -0400
commitba81a7b4abcc4b14072bc8d717191151a50614c8 (patch)
tree6831e53dca9737115cc8ac4f1e72689f1e17e02c /Annex.hs
parentb97207881a3336a4e8befe90e530954def022d93 (diff)
Probe for quvi version at run time.
Overhead: git annex addurl runs quvi --version once. And more bloat to Annex state..
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 f3f2a9177..e3bd95c33 100644
--- a/Annex.hs
+++ b/Annex.hs
@@ -62,6 +62,7 @@ import Types.MetaData
import qualified Utility.Matcher
import qualified Data.Map as M
import qualified Data.Set as S
+import Utility.Quvi (QuviVersion)
{- git-annex's monad is a ReaderT around an AnnexState stored in a MVar.
- This allows modifying the state in an exception-safe fashion.
@@ -116,6 +117,7 @@ data AnnexState = AnnexState
, useragent :: Maybe String
, errcounter :: Integer
, unusedkeys :: Maybe (S.Set Key)
+ , quviversion :: Maybe QuviVersion
}
newState :: GitConfig -> Git.Repo -> AnnexState
@@ -154,6 +156,7 @@ newState c r = AnnexState
, useragent = Nothing
, errcounter = 0
, unusedkeys = Nothing
+ , quviversion = Nothing
}
{- Makes an Annex state object for the specified git repo.