diff options
author | Joey Hess <joey@kitenet.net> | 2012-08-24 20:50:39 -0400 |
---|---|---|
committer | Joey Hess <joey@kitenet.net> | 2012-08-24 20:50:39 -0400 |
commit | c9b3b8829dc3f106583fb933808179ec02773790 (patch) | |
tree | d2b27b5d8ee40c74be33c83807761c5eb5cea584 /Git/Types.hs | |
parent | 8de7699f3905f5a3feb88cd6297f982f3666a201 (diff) |
thread safe git-annex index file use
Diffstat (limited to 'Git/Types.hs')
-rw-r--r-- | Git/Types.hs | 16 |
1 files changed, 9 insertions, 7 deletions
diff --git a/Git/Types.hs b/Git/Types.hs index 0c37427c7..57e5ca6e2 100644 --- a/Git/Types.hs +++ b/Git/Types.hs @@ -27,15 +27,17 @@ data RepoLocation | Unknown deriving (Show, Eq) -data Repo = Repo { - location :: RepoLocation, - config :: M.Map String String, +data Repo = Repo + { location :: RepoLocation + , config :: M.Map String String -- a given git config key can actually have multiple values - fullconfig :: M.Map String [String], - remotes :: [Repo], + , fullconfig :: M.Map String [String] + , remotes :: [Repo] -- remoteName holds the name used for this repo in remotes - remoteName :: Maybe String -} deriving (Show, Eq) + , remoteName :: Maybe String + -- alternate environment to use when running git commands + , gitEnv :: Maybe [(String, String)] + } deriving (Show, Eq) {- A git ref. Can be a sha1, or a branch or tag name. -} newtype Ref = Ref String |