Behavior change: --trust option no longer overrides trust

Since that can lead to data loss, which should never be enabled by an
option other than --force.

I suppose that using --trust was in some situation, safer than --force,
because it doesn't entirely disable checking for data loss, but only
disables checking involving data that is on the specified repository.
But it seems better to be able to say that data loss only happens with
--force.

This commit was sponsored by Graham Spencer on Patreon.
This commit is contained in:
Joey Hess 2021-01-07 10:12:37 -04:00
parent 6a0030a110
commit 2bf34fc17f
No known key found for this signature in database
GPG key ID: DB12DB0FF05F8F38
5 changed files with 14 additions and 8 deletions

View file

@ -55,7 +55,7 @@ gitAnnexGlobalOptions = commonGlobalOptions ++
)
, globalSetter (Remote.forceTrust Trusted) $ strOption
( long "trust" <> metavar paramRemote
<> help "override trust setting"
<> help "deprecated, does not override trust setting"
<> hidden
<> completeRemotes
)