From 17afefd63fe505ccff3d16aeeaacc8e8a33ca751 Mon Sep 17 00:00:00 2001 From: Joey Hess Date: Thu, 10 Oct 2019 12:12:22 -0400 Subject: [PATCH] add remote..annex-config-uuid for use by sameas remotes --- Types/GitConfig.hs | 2 ++ doc/git-annex.mdwn | 5 +++++ 2 files changed, 7 insertions(+) diff --git a/Types/GitConfig.hs b/Types/GitConfig.hs index 9e37bc1f3a..c19be3cbbf 100644 --- a/Types/GitConfig.hs +++ b/Types/GitConfig.hs @@ -246,6 +246,7 @@ data RemoteGitConfig = RemoteGitConfig , remoteAnnexRetry :: Maybe Integer , remoteAnnexRetryDelay :: Maybe Seconds , remoteAnnexAllowUnverifiedDownloads :: Bool + , remoteAnnexConfigUUID :: Maybe UUID {- These settings are specific to particular types of remotes - including special remotes. -} @@ -308,6 +309,7 @@ extractRemoteGitConfig r remotename = do <$> getmayberead "retrydelay" , remoteAnnexAllowUnverifiedDownloads = (== Just "ACKTHPPT") $ getmaybe ("security-allow-unverified-downloads") + , remoteAnnexConfigUUID = toUUID <$> getmaybe "config-uuid" , remoteAnnexShell = getmaybe "shell" , remoteAnnexSshOptions = getoptions "ssh-options" , remoteAnnexRsyncOptions = getoptions "rsync-options" diff --git a/doc/git-annex.mdwn b/doc/git-annex.mdwn index bea502faed..c7a6517ba2 100644 --- a/doc/git-annex.mdwn +++ b/doc/git-annex.mdwn @@ -1268,6 +1268,11 @@ Remotes are configured using these settings in `.git/config`. git-annex caches UUIDs of remote repositories here. +* `remote..annex-config-uuid` + + Used for some special remotes, points to a different special remote + configuration to use. + * `remote..annex-retry`, `annex.retry` Configure retries of failed transfers on a per-remote and general