2015-03-25 16:09:49 +00:00
|
|
|
# NAME
|
|
|
|
|
|
|
|
git-annex checkpresentkey - check if key is present in remote
|
|
|
|
|
|
|
|
# SYNOPSIS
|
|
|
|
|
2016-02-12 20:43:51 +00:00
|
|
|
git annex checkpresentkey `key` `[remote]`
|
2015-03-25 16:09:49 +00:00
|
|
|
|
|
|
|
# DESCRIPTION
|
|
|
|
|
|
|
|
This plumbing-level command verifies if the specified key's content
|
|
|
|
is present in the specified remote.
|
|
|
|
|
2016-02-12 20:43:51 +00:00
|
|
|
When no remote is specified, it verifies if the key's content is present
|
2020-06-16 17:45:00 +00:00
|
|
|
in any accessible remotes.
|
2016-02-12 20:43:51 +00:00
|
|
|
|
2020-06-16 17:45:00 +00:00
|
|
|
Exits 0 if the content is verified present in the remote, or 1 if it is
|
|
|
|
verified to not be present in the remote. If there is a problem,
|
|
|
|
the special exit code 100 is used, and an error message is output to stderr.
|
2016-02-12 20:43:51 +00:00
|
|
|
|
|
|
|
# OPTIONS
|
|
|
|
|
|
|
|
* `--batch`
|
|
|
|
|
|
|
|
Enables batch mode. In this mode, the `key` is not specified at the
|
|
|
|
command line, but the `remote` may still be. Lines containing keys are
|
|
|
|
read from stdin, and a line is output with "1" if the key is verified to
|
|
|
|
be present, and "0" otherwise.
|
2015-03-25 16:09:49 +00:00
|
|
|
|
|
|
|
# SEE ALSO
|
|
|
|
|
|
|
|
[[git-annex]](1)
|
|
|
|
|
|
|
|
# AUTHOR
|
|
|
|
|
|
|
|
Joey Hess <id@joeyh.name>
|
|
|
|
|
|
|
|
Warning: Automatically converted into a man page by mdwn2man. Edit with care.
|