sync --all avoid unncessary first pass
Sped up seeking to around twice as fast, by avoiding a pass over the worktree files when preferred content expressions of the local repo and remotes don't use include=/exclude=. Thanks to Lukey for identifying the optimisation. This commit was sponsored by Brock Spratlen on Patreon.
This commit is contained in:
parent
b45b37b088
commit
d89984b121
9 changed files with 86 additions and 12 deletions
|
@ -15,12 +15,14 @@ import Types.FileMatcher
|
|||
addWantGet :: Annex ()
|
||||
addWantGet = addLimit $ Right $ MatchFiles
|
||||
{ matchAction = const $ checkWant $ wantGet False Nothing
|
||||
, matchNeedsFileName = False
|
||||
, matchNeedsFileContent = False
|
||||
}
|
||||
|
||||
addWantDrop :: Annex ()
|
||||
addWantDrop = addLimit $ Right $ MatchFiles
|
||||
{ matchAction = const $ checkWant $ wantDrop False Nothing Nothing
|
||||
, matchNeedsFileName = False
|
||||
, matchNeedsFileContent = False
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue