Commit graph

21 commits

Author SHA1 Message Date
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
Joey Hess
e97da33773
comment 2023-01-16 15:52:52 -04:00
Joey Hess
527e70fc69
comment 2023-01-16 15:26:21 -04:00
yarikoptic
8ec6d4490f Added a comment: could be of help to DANDI 2023-01-09 21:36:44 +00:00
Atemu
34d7675302 Added a comment 2022-07-30 15:30:31 +00:00
Dan
e832676d38 Added a comment 2022-07-29 22:02:56 +00:00
Joey Hess
d8f94389e1
comment 2022-07-29 12:38:52 -04:00
Dan
d04553fdc4 Added a comment: Re: Confirming all annexed files exist elsewhere? 2022-07-28 23:20:03 +00:00
Joey Hess
e3544abc71
Merge branch 'master' of ssh://git-annex.branchable.com 2022-07-28 13:47:27 -04:00
Ilya_Shlyakhter
b14270e0fe Added a comment: Re: "Confirming all annexed files exist elsewhere?" 2022-07-28 17:40:20 +00:00
Joey Hess
2bb42fa003
comment 2022-07-28 12:15:07 -04:00
Dan Kessler
2f0620a917 fix up comment 2022-07-27 19:26:10 -04:00
Dan
f79cd648de Added a comment: Confirming all annexed files exist elsewhere? 2022-07-27 16:35:22 +00:00
Ilya_Shlyakhter
461e3c0b62 Added a comment: "dry run" option 2020-04-21 19:04:07 +00:00
Dan
b325dfea4d Added a comment: find wanted on remote? 2020-04-16 21:19:44 +00:00
mario
c39fd60958 Added a comment: Find (and other operations) over multiple repos 2019-02-25 14:33:27 +00:00
disteph@02005197c6b0e3d92255823d62c08dbe6d7a4d52
cbe8af4d2b Added a comment 2018-10-24 11:42:15 +00:00
disteph@02005197c6b0e3d92255823d62c08dbe6d7a4d52
f8aa46aa0d Added a comment 2018-10-18 08:25:35 +00:00
CandyAngel
0c32f29e21 Added a comment 2018-10-16 15:05:19 +00:00
Joey Hess
40dba8e933
prevent find running in bare repo 2018-10-16 10:44:09 -04:00
disteph@02005197c6b0e3d92255823d62c08dbe6d7a4d52
6a44da82e8 Added a comment: --all ? 2018-10-15 23:57:27 +00:00