differentiate between concurrency enabled at command line and by git config
The latter should not affect --batch mode.
This commit is contained in:
parent
8471df3b6d
commit
77c42782d0
9 changed files with 46 additions and 21 deletions
|
@ -17,3 +17,8 @@ parseConcurrency :: String -> Maybe Concurrency
|
|||
parseConcurrency "cpus" = Just ConcurrentPerCpu
|
||||
parseConcurrency "cpu" = Just ConcurrentPerCpu
|
||||
parseConcurrency s = Concurrent <$> readish s
|
||||
|
||||
-- Concurrency can be configured at the command line or by git config.
|
||||
data ConcurrencySetting
|
||||
= ConcurrencyCmdLine Concurrency
|
||||
| ConcurrencyGitConfig Concurrency
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue