git-annex/CmdLine
Joey Hess 889603336a
fix reversion in skipping deleted files
And add a test case for that.

This certianly loses some of the 2x performance improvement in file
seeking that seekFilteredKeys led to, because now it has to stat the
worktree files again. Without benchmarking, I expect there will still be
a sizable improvement, and also the git-annex branch precaching that
seekFilteredKeys can do will still be a win of its approach.

Also worth noting that lookupKey, when the file DNE, check if it's in an
adjusted branch with hidden files, and if so, finds the key for the
file anyway. That was intended to make git-annex sync --content be able
to process those files, but a side effect was that, when a file was
deleted but the deletion not yet staged, git-annex commands used to
still list it. That was actually a bug. This commit fixes that bug too.
(git-annex sync --content on such a branch does not use seekFilteredKeys
so was not affected by the reversion or by this behavior change)

This commit was sponsored by Jake Vosloo on Patreon.
2020-07-19 21:25:01 -04:00
..
GitAnnex refix bug in a better way 2020-07-02 13:32:33 -04:00
GitAnnexShell wip RawFilePath 2x git-annex find speedup 2019-11-26 16:01:58 -04:00
Action.hs convert all applicable commands to new 2x faster annexed file seeking 2020-07-10 15:45:38 -04:00
Batch.hs add back git-annex branch read cache 2020-07-06 12:22:33 -04:00
GitAnnex.hs all commands building except for assistant 2019-12-05 14:41:18 -04:00
GitAnnexShell.hs update licenses from GPL to AGPL 2019-03-13 15:48:14 -04:00
GitRemoteTorAnnex.hs update licenses from GPL to AGPL 2019-03-13 15:48:14 -04:00
GlobalSetter.hs update licenses from GPL to AGPL 2019-03-13 15:48:14 -04:00
Option.hs rename changeGitConfig to overrideGitConfig and avoid unncessary calls 2020-02-27 01:11:53 -04:00
Seek.hs fix reversion in skipping deleted files 2020-07-19 21:25:01 -04:00
Usage.hs initremote --describe-other-params 2020-01-20 16:05:51 -04:00