git-annex/CmdLine
Joey Hess a3a19518d8
fix --time-limit
It got broken in several ways by the streaming seeking optimisations
around version 8.20201007.

Moved time limit checking out of the matcher, which was a hack in the
first place. So everywhere that uses Limit.getMatcher needs to check
time limit. Well, almost everywhere. Command.Info uses it, but it does
not make sense to time limit getting info. And Command.MultiCast uses it
just to build up a list of files that then get passed to a command, so
it would never have hit the timeout in a useful way.

This implementation is a little more expensive when at time limit than
necessary, since it continues seeking only to discard everything after the
time limit. I did try making it close the file handles to force a faster
shutdown, but that didn't work and hung. Could certianly be improved
somehow, but seeking is probably not the expensive bit when a time limit
is hit, so this seems acceptable for now.
2021-01-04 15:57:11 -04:00
..
GitAnnex fix --time-limit 2021-01-04 15:57:11 -04:00
GitAnnexShell finished this stage of the RawFilePath conversion 2020-11-04 14:20:37 -04:00
Action.hs avoid interleaving command stages with Concurrency 1 2020-09-16 12:10:45 -04:00
Batch.hs add key to FileInfo 2020-12-14 17:42:02 -04:00
GitAnnex.hs rename helper 2020-12-09 13:24:24 -04:00
GitAnnexShell.hs finished this stage of the RawFilePath conversion 2020-11-04 14:20:37 -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 --time-limit 2021-01-04 15:57:11 -04:00
Usage.hs improve synopsis 2020-12-17 12:51:49 -04:00