reinject: Added --guesskeys option

Sponsored-by: Noam Kremen on Patreon
This commit is contained in:
Joey Hess 2023-06-26 14:05:31 -04:00
parent 19cac6fa14
commit d98aa35b3b
No known key found for this signature in database
GPG key ID: DB12DB0FF05F8F38
3 changed files with 46 additions and 0 deletions

View file

@ -54,6 +54,20 @@ needing to specify the dest file.
Specify the key-value backend to use when checking if a file is known
with the `--known` option.
* `--guesskeys`
With this option, each specified source file is checked to see if it
has the name of a git-annex key, and if so it is imported as the content
of that key.
This can be used to pluck git-annex objects out of `lost+found`,
as long as the original filename has not been lost,
and is particularly useful when using key-value backends that don't hash
to the content of a file.
When the key-value backend does support hashing, the content of the file
is verified before importing it.
* `--json`
Enable JSON output. This is intended to be parsed by programs that use