summaryrefslogtreecommitdiff
path: root/doc/git-annex-checkpresentkey.mdwn
blob: 5e85e569f5cf95e7b5effc00d3740d36bfb17d3c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
# NAME

git-annex checkpresentkey - check if key is present in remote

# SYNOPSIS

git annex checkpresentkey `key` `[remote]`

# DESCRIPTION

This plumbing-level command verifies if the specified key's content
is present in the specified remote.

When no remote is specified, it verifies if the key's content is present
somewhere, checking accessible remotes until it finds the content.

Exits 0 if the content is verified present, or 1 if it is verified to not
be present. If there is a problem, the special exit code 100 is used,
and an error message is output to stderr.

# 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.

# SEE ALSO

[[git-annex]](1)

# AUTHOR

Joey Hess <id@joeyh.name>

Warning: Automatically converted into a man page by mdwn2man. Edit with care.