find: Avoid polluting stdout with progress messages. Closes: #718186

This commit is contained in:
Joey Hess 2013-07-30 20:24:27 -04:00
parent 433682cb1d
commit 9476355bc3
5 changed files with 13 additions and 2 deletions

View file

@ -30,6 +30,7 @@ import Annex.Content
import Annex.Ssh
import Annex.Environment
import Command
import Types.Messages
type Params = [String]
type Flags = [Annex ()]
@ -47,6 +48,8 @@ dispatch fuzzyok allargs allcmds commonoptions fields header getgitrepo = do
checkEnvironment
checkfuzzy
forM_ fields $ uncurry Annex.setField
when (cmdnomessages cmd) $
Annex.setOutput QuietOutput
sequence_ flags
whenM (annexDebug <$> Annex.getGitConfig) $
liftIO enableDebugOutput