move, copy: Sped up seeking for annexed files to operate on by a factor of nearly 2x.
This commit is contained in:
parent
00865cdae8
commit
d732ef1a89
5 changed files with 37 additions and 30 deletions
|
@ -57,8 +57,11 @@ seek o = startConcurrency commandStages $ do
|
|||
|
||||
seeker = AnnexedFileSeeker
|
||||
{ startAction = start o
|
||||
, checkContentPresent = Nothing
|
||||
, usesLocationLog = False
|
||||
, checkContentPresent = case fromToOptions o of
|
||||
Right (FromRemote _) -> Just False
|
||||
Right (ToRemote _) -> Just True
|
||||
Left ToHere -> Just False
|
||||
, usesLocationLog = True
|
||||
}
|
||||
|
||||
{- A copy is just a move that does not delete the source file.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue