diff options
Diffstat (limited to 'Command/Add.hs')
-rw-r--r-- | Command/Add.hs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/Command/Add.hs b/Command/Add.hs index f6dfd2da4..c6ab4d0ad 100644 --- a/Command/Add.hs +++ b/Command/Add.hs @@ -38,14 +38,14 @@ seek = [withFilesNotInGit start, withFilesUnlocked start] {- The add subcommand annexes a file, storing it in a backend, and then - moving it into the annex directory and setting up the symlink pointing - to its content. -} -start :: CommandStartBackendFile -start pair@(file, _) = notAnnexed file $ do +start :: BackendFile -> CommandStart +start p@(file, _) = notAnnexed file $ do s <- liftIO $ getSymbolicLinkStatus file if isSymbolicLink s || not (isRegularFile s) then stop else do showStart "add" file - next $ perform pair + next $ perform p perform :: BackendFile -> CommandPerform perform (file, backend) = do |