add git config lookups for annex.name, annex.backends, etc
This commit is contained in:
parent
c5d7ca0a5a
commit
2bd3eea031
5 changed files with 75 additions and 16 deletions
11
Types.hs
11
Types.hs
|
@ -23,12 +23,17 @@ data Backend = Backend {
|
|||
-- a git repository
|
||||
data GitRepo = GitRepo {
|
||||
top :: FilePath,
|
||||
bare :: Bool,
|
||||
remotes :: [GitRepo]
|
||||
bare :: Bool
|
||||
}
|
||||
|
||||
-- git-annex's runtime state
|
||||
data State = State {
|
||||
repo :: GitRepo,
|
||||
backends :: [Backend]
|
||||
gitconfig :: GitConfig
|
||||
}
|
||||
|
||||
data GitConfig = GitConfig {
|
||||
annex_name :: String,
|
||||
annex_numcopies :: Int,
|
||||
annex_backends :: [Backend]
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue