remove --backend from global options
authorJoey Hess <joeyh@joeyh.name>
Wed, 29 Jun 2022 17:28:08 +0000 (13:28 -0400)
committerJoey Hess <joeyh@joeyh.name>
Wed, 29 Jun 2022 17:33:25 +0000 (13:33 -0400)
commitb223988e22931cf2243ae14289d22ef4e70e51f2
tree11406d1366b6e955f92415eeb948efed6da5534a
parent3eecf2033a653d7573a9b4775261d49b5dfaacfd
remove --backend from global options

--backend is no longer a global option, and is only accepted by commands
that actually need it.

Three commands that used to support backend but don't any longer are
watch, webapp, and assistant. It would be possible to make them support it,
but I doubt anyone used the option with these. And in the case of webapp
and assistant, the option was handled inconsistently, only taking affect
when the command is run with an existing git-annex repo, not when it
creates a new one.

Also, renamed GlobalOption etc to AnnexOption. Because there are many
options of this type that are not actually global (any more) and get
added to commands that need them.

Sponsored-by: Kevin Mueller on Patreon
49 files changed:
CHANGELOG
CmdLine.hs
CmdLine/AnnexSetter.hs [new file with mode: 0644]
CmdLine/GitAnnex.hs
CmdLine/GitAnnex/Options.hs
CmdLine/GitAnnexShell.hs
CmdLine/GlobalSetter.hs [deleted file]
CmdLine/Option.hs
Command.hs
Command/Add.hs
Command/AddUrl.hs
Command/CalcKey.hs
Command/Copy.hs
Command/Drop.hs
Command/DropKey.hs
Command/ExamineKey.hs
Command/Export.hs
Command/FilterBranch.hs
Command/Find.hs
Command/FindRef.hs
Command/Fix.hs
Command/FromKey.hs
Command/Fsck.hs
Command/Get.hs
Command/Import.hs
Command/Info.hs
Command/List.hs
Command/Lock.hs
Command/Log.hs
Command/MetaData.hs
Command/Migrate.hs
Command/Mirror.hs
Command/Move.hs
Command/RegisterUrl.hs
Command/Reinject.hs
Command/Status.hs
Command/Sync.hs
Command/Unannex.hs
Command/Unlock.hs
Command/UnregisterUrl.hs
Command/WhereUsed.hs
Command/Whereis.hs
Types/Command.hs
Types/DeferredParse.hs
doc/bugs/backend_option_for_init_is_in_no_effect__63__.mdwn
doc/git-annex-common-options.mdwn
doc/git-annex-import.mdwn
doc/git-annex-sync.mdwn
git-annex.cabal