Added ways to configure rsync options to be used only when uploading or downloading from a remote. Useful to eg limit upload bandwidth.
This commit is contained in:
parent
9e4675d3c8
commit
089c0109a2
7 changed files with 60 additions and 21 deletions
|
@ -115,6 +115,8 @@ data RemoteGitConfig = RemoteGitConfig
|
|||
- including special remotes. -}
|
||||
, remoteAnnexSshOptions :: [String]
|
||||
, remoteAnnexRsyncOptions :: [String]
|
||||
, remoteAnnexRsyncUploadOptions :: [String]
|
||||
, remoteAnnexRsyncDownloadOptions :: [String]
|
||||
, remoteAnnexRsyncTransport :: [String]
|
||||
, remoteAnnexGnupgOptions :: [String]
|
||||
, remoteAnnexRsyncUrl :: Maybe String
|
||||
|
@ -144,6 +146,8 @@ extractRemoteGitConfig r remotename = RemoteGitConfig
|
|||
|
||||
, remoteAnnexSshOptions = getoptions "ssh-options"
|
||||
, remoteAnnexRsyncOptions = getoptions "rsync-options"
|
||||
, remoteAnnexRsyncDownloadOptions = getoptions "rsync-download-options"
|
||||
, remoteAnnexRsyncUploadOptions = getoptions "rsync-upload-options"
|
||||
, remoteAnnexRsyncTransport = getoptions "rsync-transport"
|
||||
, remoteAnnexGnupgOptions = getoptions "gnupg-options"
|
||||
, remoteAnnexRsyncUrl = notempty $ getmaybe "rsyncurl"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue