1git-annex-calckey(1) General Commands Manual git-annex-calckey(1)
2
3
4
6 git-annex-calckey - calculate key for a file
7
9 git annex calckey [file ...]
10
12 This plumbing-level command calculates the key that would be used to
13 refer to a file. The file is not added to the annex by this command.
14 The key is output to stdout.
15
16 The backend used is the one from the annex.backend configuration set‐
17 ting, which can be overridden by the --backend option. For example, to
18 force use of the SHA1 backend:
19
20 git annex calckey --backend=SHA1 file
21
23 --backend=name
24
25 Specifies which key-value backend to use.
26
27 --batch
28 Enable batch mode, in which a line containing the filename is
29 read from stdin, the key is output to stdout (with a trailing
30 newline), and repeat.
31
32 -z Makes the --batch input be delimited by nulls instead of the
33 usual newlines.
34
35 Also the git-annex-common-options(1) can be used.
36
38 git-annex(1)
39
41 Joey Hess <id@joeyh.name>
42
43 git-annex-calckey(1)