From 95697161487c5df3d8a88cdccbc40fd0c4d7b094 Mon Sep 17 00:00:00 2001 From: Joey Hess Date: Mon, 16 Oct 2017 14:10:03 -0400 Subject: 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. --- Command/Find.hs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'Command/Find.hs') diff --git a/Command/Find.hs b/Command/Find.hs index d3571c6f8..03ac72f96 100644 --- a/Command/Find.hs +++ b/Command/Find.hs @@ -50,7 +50,7 @@ parseFormatOption = seek :: FindOptions -> CommandSeek seek o = case batchOption o of - NoBatch -> withFilesInGit go (findThese o) + NoBatch -> withFilesInGit go =<< workTreeItems (findThese o) Batch -> batchFiles go where go = whenAnnexed $ start o -- cgit v1.2.3