store from and to repositories separately
This commit is contained in:
parent
f4e2dde8a8
commit
2fbbbd34bc
2 changed files with 5 additions and 3 deletions
|
@ -62,9 +62,9 @@ options = [
|
|||
"specify default key-value backend to use"
|
||||
, Option ['k'] ["key"] (ReqArg (storestring "key") "KEY")
|
||||
"specify a key to use"
|
||||
, Option ['t'] ["to"] (ReqArg (storestring "repository") "REPOSITORY")
|
||||
, Option ['t'] ["to"] (ReqArg (storestring "torepository") "REPOSITORY")
|
||||
"specify a repository to transfer content to"
|
||||
, Option ['f'] ["from"] (ReqArg (storestring "repository") "REPOSITORY")
|
||||
, Option ['f'] ["from"] (ReqArg (storestring "fromrepository") "REPOSITORY")
|
||||
"specify a repository to transfer content from"
|
||||
]
|
||||
where
|
||||
|
|
|
@ -105,7 +105,9 @@ repoCost r = do
|
|||
repoNotIgnored :: Git.Repo -> Annex Bool
|
||||
repoNotIgnored r = do
|
||||
g <- Annex.gitRepo
|
||||
name <- Annex.flagGet "repository"
|
||||
fromName <- Annex.flagGet "fromrepository"
|
||||
toName <- Annex.flagGet "torepository"
|
||||
let name = if (not $ null fromName) then fromName else toName
|
||||
if (not $ null name)
|
||||
then return $ match name
|
||||
else return $ notignored g
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue