git-annex-config: Allow setting annex.securehashesonly

Which has otherwise been supported since 2019, but was missing from the
list of allowed repo-global configs.

Reordered the list to match the order in the git-annex-config man page, to
make them easy to cross-compare.

This commit was sponsored by Boyd Stephen Smith Jr. on Patreon.
This commit is contained in:
Joey Hess 2021-04-26 13:50:37 -04:00
parent 28f5f7515c
commit d3e49b210a
No known key found for this signature in database
GPG key ID: DB12DB0FF05F8F38
3 changed files with 13 additions and 5 deletions

View file

@ -297,13 +297,14 @@ mergeGitConfig gitconfig repoglobals = gitconfig
{- Configs that can be set repository-global. -}
globalConfigs :: [ConfigKey]
globalConfigs =
[ annexConfig "autocommit"
, annexConfig "synccontent"
, annexConfig "synconlyannex"
, annexConfig "resolvemerge"
, annexConfig "largefiles"
[ annexConfig "largefiles"
, annexConfig "dotfiles"
, annexConfig "addunlocked"
, annexConfig "autocommit"
, annexConfig "resolvemerge"
, annexConfig "synccontent"
, annexConfig "synconlyannex"
, annexConfig "securehashesonly"
]
{- Per-remote git-annex settings. Each setting corresponds to a git-config