copy, drop: Avoid checking numcopies attribute unnecessarily
This commit is contained in:
parent
619297e1a7
commit
aa558f0b00
4 changed files with 16 additions and 5 deletions
|
@ -30,7 +30,7 @@ seek = [withField fromOption Remote.byName $ \from ->
|
|||
withFilesInGit $ whenAnnexed $ start from]
|
||||
|
||||
start :: Maybe Remote -> FilePath -> (Key, Backend) -> CommandStart
|
||||
start from file (key, _) = autoCopies file key (>) $ \numcopies ->
|
||||
start from file (key, _) = autoCopiesWith file key (>) $ \numcopies ->
|
||||
case from of
|
||||
Nothing -> startLocal file numcopies key
|
||||
Just remote -> do
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue