git-annex config: guard against non-repo-global configs

git-annex config: Only allow configs be set that are ones git-annex
actually supports reading from repo-global config, to avoid confused users
trying to set other configs with this.
This commit is contained in:
Joey Hess 2020-03-02 15:50:40 -04:00
parent 5a72e3be18
commit ccd8c43dc8
No known key found for this signature in database
GPG key ID: DB12DB0FF05F8F38
8 changed files with 136 additions and 110 deletions

View file

@ -17,7 +17,8 @@ import Logs.Config
- repository-global defaults when the GitConfig does not yet
- have a value.
-
- Note: Be sure to add the config value to mergeGitConfig.
- Note: Be sure to add the config to mergeGitConfig and to
- globalConfigs.
-}
getGitConfigVal :: (GitConfig -> Configurable a) -> Annex a
getGitConfigVal f = getGitConfigVal' f >>= \case