-J for add/addurl/import
This commit is contained in:
parent
31472161e4
commit
5db7d435e7
7 changed files with 28 additions and 11 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue