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