rename Configurable for clarity
This commit is contained in:
parent
7a4f3ff345
commit
8471df3b6d
2 changed files with 11 additions and 11 deletions
|
@ -20,13 +20,13 @@ import Logs.Config
|
|||
- Note: Be sure to add the config to mergeGitConfig and to
|
||||
- globalConfigs.
|
||||
-}
|
||||
getGitConfigVal :: (GitConfig -> Configurable a) -> Annex a
|
||||
getGitConfigVal :: (GitConfig -> GlobalConfigurable a) -> Annex a
|
||||
getGitConfigVal f = getGitConfigVal' f >>= \case
|
||||
HasGlobalConfig c -> return c
|
||||
DefaultConfig d -> return d
|
||||
HasGitConfig c -> return c
|
||||
|
||||
getGitConfigVal' :: (GitConfig -> Configurable a) -> Annex (Configurable a)
|
||||
getGitConfigVal' :: (GitConfig -> GlobalConfigurable a) -> Annex (GlobalConfigurable a)
|
||||
getGitConfigVal' f = (f <$> Annex.getGitConfig) >>= \case
|
||||
DefaultConfig _ -> do
|
||||
r <- Annex.gitRepo
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue