git-annex-calckey(1)
๐ธ NAME ๐ธ
git-annex-calckey โ calculate key for a file ๐ซ
โจ SYNOPSIS โจ
git annex calckey [file ...]
๐ DESCRIPTION ๐
okay bestie, listen up, because this one is plumbing-level, which basically means it's the behind-the-scenes machinery kind of command, not the pretty front-door one. ๐
What it does: it calculates the key that would be used to refer to a file. And here's the important part โ the file is not added to the annex by this command. It's just doing the math, being a lil calculator, no commitment, no strings. ๐งฎโจ
The key gets output to stdout. That's it. That's the whole vibe.
So which backend is doing the keying? It's the one from the annex.backend configuration setting. But (and this is the fun part) you can override that with the --backend option. Like, say you wanna force use of the SHA1 backend:
git annex calckey --backend=SHA1 file
slay. ๐
๐ OPTIONS ๐
--backend=nameโ Specifies which key-value backend to use. that's the override, the "actually, I want this one" move ๐ซถ--batchโ Enable batch mode, bestie. In this mode a line containing the filename gets read from stdin, then the key is output to stdout (with a trailing newline, don't forget the newline, she's important), and then it repeats. over and over. iconic loop behavior. ๐-zโ Makes the--batchinput be delimited by nulls instead of the usual newlines. yeah. nulls. for when newlines are simply not the moment. ๐
Also the git-annex-common-options(1) can be used. those are always invited to the party. ๐
๐ฆ SEE ALSO ๐ฆ
๐ AUTHOR ๐
Joey Hess <id@joeyh.name>
and that's the whole page, no cap. this was the git-annex-calckey(1) manual page from the General Commands Manual โ part of git-annex, written by Joey Hess, and the footer just says git-annex-calckey(1) right back at you like a little mirror. mwah. ๐
๐ฆ where this page comes from
- alpine 3.24: git-annex-doc 10.20261026-r0 ยท AGPL-3.0-or-later
- arch rolling: git-annex 10.20261026-2 ยท AGPL-3.0-only
- debian bookworm: git-annex 10.20230126-3 ยท AGPL-3.0-or-later
- debian trixie: git-annex 10.20250416-2 ยท AGPL-3.0-or-later
- debian trixie: git-annex 10.20250416-2+deb13u1 ยท AGPL-3.0-or-later
- epel 10: git-annex 10.20250320-1.el10_0 ยท AGPL-3.0-or-later
- fedora 43: git-annex 10.20250630-4.fc43 ยท AGPL-3.0-or-later
- fedora 43: git-annex 10.20250929-5.fc43 ยท AGPL-3.0-or-later
- fedora 44: git-annex 10.20260115-1.fc44 ยท AGPL-3.0-or-later
- nixos 26.05: git-annex 10.20260421
- nixpkgs unstable: git-annex 10.20260421
- opensuse-leap 16.0: git-annex 10.20250828-bp160.1.1 ยท AGPL-3.0-or-later AND GPL-3.0-or-later AND BSD-2-Clause AND MIT AND GPL-2.0-only
- opensuse-leap 16.0: git-annex 10.20250828-bp160.1.1 ยท AGPL-3.0-or-later AND GPL-3.0-or-later AND BSD-2-Clause AND MIT AND GPL-2.0-only
- opensuse-leap 16.0: git-annex 10.20250828-bp160.1.1 ยท AGPL-3.0-or-later AND GPL-3.0-or-later AND BSD-2-Clause AND MIT AND GPL-2.0-only
- ubuntu noble: git-annex 10.20240129-1build1 ยท AGPL-3.0-or-later
- ubuntu questing: git-annex 10.20250721-1
- ubuntu resolute: git-annex 10.20251029-1ubuntu1 ยท AGPL-3.0-or-later
- ubuntu stonking: git-annex 10.20251029-1ubuntu1 ยท AGPL-3.0-or-later
- ๐ girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms