arrange for regional output manager to run when -J is enabled
Commands that want to use it have to run their seek action inside allowConcurrentOutput. Which seems reasonable; perhaps some future command will want to support the -J flag but not use regions. The region state moved from Annex to MessageState. This makes sense organizationally, and note that some uses of onLocal use a different Annex state, but pass the MessageState into it, which is what is needed.
This commit is contained in:
parent
a4dd8503b8
commit
c0c595345c
12 changed files with 58 additions and 50 deletions
|
@ -19,6 +19,7 @@ module Command (
|
|||
whenAnnexed,
|
||||
ifAnnexed,
|
||||
isBareRepo,
|
||||
allowConcurrentOutput,
|
||||
module ReExported
|
||||
) where
|
||||
|
||||
|
@ -36,6 +37,7 @@ import CmdLine.Option as ReExported
|
|||
import CmdLine.GlobalSetter as ReExported
|
||||
import CmdLine.GitAnnex.Options as ReExported
|
||||
import Options.Applicative as ReExported hiding (command)
|
||||
import Messages.Internal (allowConcurrentOutput)
|
||||
|
||||
import qualified Options.Applicative as O
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue