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

@ -14,6 +14,9 @@ git-annex (8.20210331) UNRELEASED; urgency=medium
* directory: When cp supports reflinks, use it.
* Avoid excess commits to the git-annex branch when stall detection is
enabled.
* 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.
* init: Fix a crash when the repo's was cloned from a repo that had an
adjusted branch checked out, and the origin remote is not named "origin".
* Fix some bugs that made git-annex not see recently recorded status

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

View file

@ -31,3 +31,7 @@ local repository version: 8
### Have you had any luck using git-annex before? (Sometimes we get tired of reading bug reports all day and a lil' positive end note does wonders)
it's great!
> Ooops, it seems I implemented everything needed for that except
> forgot to add it to the list of allowed configs. Fixed now, and tested to
> work. [[done]] --[[Joey]]