2016-04-20 17:49:42 +00:00
|
|
|
# NAME
|
|
|
|
|
|
|
|
git-annex calckey - calculates the key that would be used to refer to a file
|
|
|
|
|
|
|
|
# SYNOPSIS
|
|
|
|
|
|
|
|
git annex calckey `[file ...]`
|
|
|
|
|
|
|
|
# DESCRIPTION
|
|
|
|
|
|
|
|
This plumbing-level command calculates the key that would be used
|
|
|
|
to refer to a file. The file is not added to the annex by this command.
|
|
|
|
The key is output to stdout.
|
|
|
|
|
2017-05-09 19:04:07 +00:00
|
|
|
The backend used is the one from the annex.backend configuration
|
2016-04-21 15:23:17 +00:00
|
|
|
setting, which can be overridden by the --backend option.
|
|
|
|
For example, to force use of the SHA1 backend:
|
2016-04-20 17:49:42 +00:00
|
|
|
|
2016-04-21 15:23:17 +00:00
|
|
|
git annex calckey --backend=SHA1 file
|
2016-04-20 17:49:42 +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.
|
|
|
|
|
2016-04-21 15:23:17 +00:00
|
|
|
* `--backend=name`
|
|
|
|
|
|
|
|
Specifies which key-value backend to use.
|
|
|
|
|
2016-04-20 17:49:42 +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.
|