summaryrefslogtreecommitdiff
path: root/Command/Copy.hs
diff options
context:
space:
mode:
authorGravatar Joey Hess <joey@kitenet.net>2012-07-10 11:53:45 -0600
committerGravatar Joey Hess <joey@kitenet.net>2012-07-10 11:53:45 -0600
commitaa558f0b00ef012f6c7532d8451de3fb1ed1eb9b (patch)
tree5a296752b628ce7ae926fcd3756a48eccf3ce363 /Command/Copy.hs
parent619297e1a7ba89f50fa5be9d7dfdfe5a9510129a (diff)
copy, drop: Avoid checking numcopies attribute unnecessarily
Diffstat (limited to 'Command/Copy.hs')
-rw-r--r--Command/Copy.hs2
1 files changed, 1 insertions, 1 deletions
diff --git a/Command/Copy.hs b/Command/Copy.hs
index a8ec22570..5d92eef2e 100644
--- a/Command/Copy.hs
+++ b/Command/Copy.hs
@@ -24,5 +24,5 @@ seek = [withField Command.Move.toOption Remote.byName $ \to ->
-- A copy is just a move that does not delete the source file.
-- However, --auto mode avoids unnecessary copies.
start :: Maybe Remote -> Maybe Remote -> FilePath -> (Key, Backend) -> CommandStart
-start to from file (key, backend) = autoCopies file key (<) $ \_numcopies ->
+start to from file (key, backend) = autoCopies file key (<) $
Command.Move.start to from False file (key, backend)