aboutsummaryrefslogtreecommitdiff
path: root/doc/git-annex-calckey.mdwn
blob: c91e1a8270c81754184d2726d2c71503454817e8 (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
39
40
# 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.

The backend used is the one from the annex.backend configuration
setting, which can be overridden by the --backend option.
For example, to force use of the SHA1 backend:

	git annex calckey --backend=SHA1 file

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

* `--backend=name`

  Specifies which key-value backend to use.

# SEE ALSO

[[git-annex]](1)

# AUTHOR

Joey Hess <id@joeyh.name>

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