reall disable progress displays for --quiet
This commit is contained in:
parent
3146d24e29
commit
d7f66a90af
1 changed files with 8 additions and 0 deletions
|
@ -1,3 +1,10 @@
|
|||
{- git-annex progress output
|
||||
-
|
||||
- Copyright 2010-2015 Joey Hess <id@joeyh.name>
|
||||
-
|
||||
- Licensed under the GNU GPL version 3 or higher.
|
||||
-}
|
||||
|
||||
module Messages.Progress where
|
||||
|
||||
import Common
|
||||
|
@ -59,6 +66,7 @@ mkProgressHandler meter = ProgressHandler
|
|||
<*> pure meter
|
||||
where
|
||||
quietmode = withOutputType $ \t -> return $ case t of
|
||||
QuietOutput -> True
|
||||
ProgressOutput -> True
|
||||
_ -> False
|
||||
stderrhandler emitter h = unlessM (hIsEOF h) $ do
|
||||
|
|
Loading…
Reference in a new issue