diff options
author | Joey Hess <joeyh@joeyh.name> | 2015-11-05 18:24:15 -0400 |
---|---|---|
committer | Joey Hess <joeyh@joeyh.name> | 2015-11-05 18:24:15 -0400 |
commit | d8a1741254643a7c5b324cabe8c00e36b58434d8 (patch) | |
tree | 6390bcea81c5b8271e92a07de4b8c8e20de9f4bf /Command/Add.hs | |
parent | a2c9cbbdc4047b799321ec388a94d4f96951a6f2 (diff) |
-J for add/addurl/import
Diffstat (limited to 'Command/Add.hs')
-rw-r--r-- | Command/Add.hs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Command/Add.hs b/Command/Add.hs index 11682207e..94a19fba5 100644 --- a/Command/Add.hs +++ b/Command/Add.hs @@ -35,7 +35,7 @@ import Utility.Tmp import Control.Exception (IOException) cmd :: Command -cmd = notBareRepo $ withGlobalOptions fileMatchingOptions $ +cmd = notBareRepo $ withGlobalOptions (jobsOption : fileMatchingOptions) $ command "add" SectionCommon "add files to annex" paramPaths (seek <$$> optParser) @@ -56,7 +56,7 @@ optParser desc = AddOptions - - In direct mode, it acts on any files that have changed. -} seek :: AddOptions -> CommandSeek -seek o = do +seek o = allowConcurrentOutput $ do matcher <- largeFilesMatcher let go a = flip a (addThese o) $ \file -> ifM (checkFileMatcher matcher file <||> Annex.getState Annex.force) ( start file |