Avoid repeated checking that files passed on the command line exist.
git annex add, git annex lock etc make multiple seek passes, and each seek pass checked that files existed. That was unncessary redundant work. Fixed by adding a new WorkTreeItem type, make seek actions use it, and check that the files exist when constructing it. This commit was supported by the NSF-funded DataLad project.
This commit is contained in:
parent
a461cf2ce6
commit
85ed38a574
25 changed files with 128 additions and 71 deletions
|
@ -81,7 +81,7 @@ seek o = case batchOption o of
|
|||
withKeyOptions (keyOptions o) False
|
||||
(startKeys c o)
|
||||
(seeker $ whenAnnexed $ start c o)
|
||||
(forFiles o)
|
||||
=<< workTreeItems (forFiles o)
|
||||
Batch -> withMessageState $ \s -> case outputType s of
|
||||
JSONOutput _ -> batchInput parseJSONInput $
|
||||
commandAction . startBatch
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue