move comment
This commit is contained in:
parent
ec82299730
commit
d889ae0c01
2 changed files with 8 additions and 9 deletions
|
@ -25,15 +25,6 @@ import Data.Time.Clock.POSIX
|
||||||
-- Copies from src to dest, updating a meter. If the copy finishes
|
-- Copies from src to dest, updating a meter. If the copy finishes
|
||||||
-- successfully, calls a final check action, which must also succeed, or
|
-- successfully, calls a final check action, which must also succeed, or
|
||||||
-- returns false.
|
-- returns false.
|
||||||
--
|
|
||||||
-- If either the remote or local repository wants to use hard links,
|
|
||||||
-- the copier will do so (falling back to copying if a hard link cannot be
|
|
||||||
-- made).
|
|
||||||
--
|
|
||||||
-- When a hard link is created, returns Verified; the repo being linked
|
|
||||||
-- from is implicitly trusted, so no expensive verification needs to be
|
|
||||||
-- done. Also returns Verified if the key's content is verified while
|
|
||||||
-- copying it.
|
|
||||||
type FileCopier = FilePath -> FilePath -> Key -> MeterUpdate -> Annex Bool -> VerifyConfig -> Annex (Bool, Verification)
|
type FileCopier = FilePath -> FilePath -> Key -> MeterUpdate -> Annex Bool -> VerifyConfig -> Annex (Bool, Verification)
|
||||||
|
|
||||||
-- To avoid the overhead of trying copy-on-write every time, it's tried
|
-- To avoid the overhead of trying copy-on-write every time, it's tried
|
||||||
|
|
|
@ -839,6 +839,14 @@ wantHardLink = (annexHardLink <$> Annex.getGitConfig)
|
||||||
-- because they can be modified at any time.
|
-- because they can be modified at any time.
|
||||||
<&&> (not <$> annexThin <$> Annex.getGitConfig)
|
<&&> (not <$> annexThin <$> Annex.getGitConfig)
|
||||||
|
|
||||||
|
-- If either the remote or local repository wants to use hard links,
|
||||||
|
-- the copier will do so (falling back to copying if a hard link cannot be
|
||||||
|
-- made).
|
||||||
|
--
|
||||||
|
-- When a hard link is created, returns Verified; the repo being linked
|
||||||
|
-- from is implicitly trusted, so no expensive verification needs to be
|
||||||
|
-- done. Also returns Verified if the key's content is verified while
|
||||||
|
-- copying it.
|
||||||
mkFileCopier :: Bool -> State -> Annex FileCopier
|
mkFileCopier :: Bool -> State -> Annex FileCopier
|
||||||
mkFileCopier remotewanthardlink (State _ _ copycowtried _ _) = do
|
mkFileCopier remotewanthardlink (State _ _ copycowtried _ _) = do
|
||||||
let copier = fileCopier copycowtried
|
let copier = fileCopier copycowtried
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue