diff options
author | Joey Hess <joey@kitenet.net> | 2014-02-28 14:54:02 -0400 |
---|---|---|
committer | Joey Hess <joey@kitenet.net> | 2014-02-28 14:54:02 -0400 |
commit | ba81a7b4abcc4b14072bc8d717191151a50614c8 (patch) | |
tree | 6831e53dca9737115cc8ac4f1e72689f1e17e02c /Annex.hs | |
parent | b97207881a3336a4e8befe90e530954def022d93 (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.hs | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -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. |