git-annex/CmdLine
Joey Hess f8bc208e89
findkeys: New command, very similar to git-annex find but operating on keys
I've long been asked for `git-annex find --all` or something like that,
but pushed back on it because I feel that the command is analagous to
find(1) and so it would be surprising for it to list keys rather than
files. So instead, add a new findkeys subcommand.

Note that the use of withKeyOptions is rather strange because usually
that is used to fall back to --all rather than listing files, but here
it's made to default to --all like behavior and never list files.

A performance thing that could be improved is that withKeyOptions
always reads and caches location logs. But findkeys with no options does
not need them, so it could be made faster. That caching does speed up
options like --in though. This is really just a subset of a more general
performance thing that --all reads location logs sometimes unncessarily.
Anyway, it needs to read the location log in order to checkDead,
and it seems good that findkeys does skip dead keys.

Also, cleaned up comments on git-annex-find man page asking for --all
option.

Sponsored-by: Dartmouth College's DANDI project
2023-01-17 14:51:57 -04:00
..
GitAnnex findkeys: New command, very similar to git-annex find but operating on keys 2023-01-17 14:51:57 -04:00
GitAnnexShell remove git-annex-shell compat code 2021-10-11 15:36:51 -04:00
Action.hs Improved handling of --time-limit when combined with -J 2022-09-22 12:54:52 -04:00
AnnexSetter.hs remove --backend from global options 2022-06-29 13:33:25 -04:00
Batch.hs use lookupKeyStaged in --batch code paths 2022-10-26 14:43:06 -04:00
GitAnnex.hs findkeys: New command, very similar to git-annex find but operating on keys 2023-01-17 14:51:57 -04:00
GitAnnexShell.hs remove --backend from global options 2022-06-29 13:33:25 -04:00
GitRemoteTorAnnex.hs avoid flushing keys db queue after each Annex action 2022-10-12 14:12:23 -04:00
Option.hs remove --backend from global options 2022-06-29 13:33:25 -04:00
Seek.hs fix misleading helper function name 2023-01-17 14:25:38 -04:00
Usage.hs fix typo 2022-10-07 12:30:07 -04:00