sync --all avoid unncessary first pass
authorJoey Hess <joeyh@joeyh.name>
Thu, 24 Sep 2020 19:12:09 +0000 (15:12 -0400)
committerJoey Hess <joeyh@joeyh.name>
Thu, 24 Sep 2020 19:12:09 +0000 (15:12 -0400)
commitd89984b121745fdd7a704f0468d466c6e08f99c1
tree78cb6cb85210eb0b4a467aebd14e1f63a6d4b6d8
parentb45b37b088e7b7aef847e40b4b4ae6a417926efd
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.
Annex/FileMatcher.hs
CHANGELOG
Command/Sync.hs
Limit.hs
Limit/Wanted.hs
Logs/PreferredContent.hs
Types/FileMatcher.hs
doc/todo/skip_first_pass_in_git_annex_sync.mdwn
doc/todo/skip_first_pass_in_git_annex_sync/comment_2_9a93d321f955c3cdac5b8cbcd452f42e._comment [new file with mode: 0644]