2015-03-25 16:09:49 +00:00
|
|
|
# NAME
|
|
|
|
|
|
|
|
git-annex lookupkey - looks up key used for file
|
|
|
|
|
|
|
|
# SYNOPSIS
|
|
|
|
|
|
|
|
git annex lookupkey `[file ...]`
|
|
|
|
|
|
|
|
# DESCRIPTION
|
|
|
|
|
|
|
|
This plumbing-level command looks up the key used for a file in the
|
|
|
|
index. The key is output to stdout. If there is no key (because
|
|
|
|
the file is not present in the index, or is not a git-annex managed file),
|
|
|
|
nothing is output, and it exits nonzero.
|
|
|
|
|
2015-05-06 17:44:53 +00:00
|
|
|
# OPTIONS
|
|
|
|
|
|
|
|
* `--batch`
|
|
|
|
|
|
|
|
Enable batch mode, in which a line containing the filename is read from
|
|
|
|
stdin, the key is output to stdout (with a trailing newline), and repeat.
|
|
|
|
|
2015-05-30 14:54:14 +00:00
|
|
|
Note that if there is no key corresponding to the file, an empty line is
|
2015-05-06 17:44:53 +00:00
|
|
|
output to stdout instead.
|
|
|
|
|
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.
|