git-annex-calckey(1)

๐Ÿ“ฆ
version 10.20261026 ยท 2 versions
  • 10.20261026 ยท alpine 3.24, arch rolling, debian bookworm, debian trixie, epel 10, fedora 43, fedora 44, nixos 26.05, nixpkgs unstable, opensuse-leap 16.0, ubuntu noble, ubuntu questing, ubuntu resolute, ubuntu stonking (latest)
  • 8.20210223 ยท ubuntu jammy
, in alpine 3.24, arch rolling, debian bookworm, debian trixie, epel 10, fedora 43, fedora 44, nixos 26.05, nixpkgs unstable, opensuse-leap 16.0, ubuntu noble, ubuntu questing, ubuntu resolute, ubuntu stonking

๐ŸŒธ 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 --batch input 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 ๐Ÿฆ‹

git-annex(1)


๐Ÿ’œ 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. ๐Ÿ’‹