git-annex-whereused(1)
π git-annex-whereused(1) β the "who's using this key bestie" page
okay so this is git-annex-whereused, from the General Commands Manual, and it's literally the detective of the git-annex universe π΅οΈβοΈ
β¨ NAME β¨
git-annex-whereused β find what files use or used a key π
πΈ SYNOPSIS πΈ
git annex whereused --key=keyname|--unused
π DESCRIPTION π
Finds what files use or used a key. That's the whole gig. π
For each file in the working tree that uses a key, this outputs one line, starting with the key, then a space, and then the name of the file. When multiple files use the same key, they will all be listed β no gatekeeping, everyone gets their moment π
When nothing is found that uses the key, there will be no output. Silence. The void. The key is a ghost π
The default is to find only files in the current working tree that use a key. The --historical option makes it also find past versions of files. So if you're like "wait I swear this key was used somewhere" β yeah, that's the historical vibe π¦
π OPTIONS π
--key=keynameβ Operate on this key. Just this one. The main character key β¨--unusedβ Operate on keys found by last run ofgit-annex unused.
Usually these keys won't be used by any files in the current working tree, or any tags or branches. Combining this option with --historical will find past uses of the keys. Obsessed with the combo ngl π«Ά
--historicalβ When no files in the current working tree use a key, this causes more work to be done, looking at past versions of the current branch, other branches, tags, and the reflog, to find somewhere that the key was used.
It stops after finding one use of the key, and outputs a git rev that refers to where it was used, eg "HEAD@{40}:somefile".
bestie this one is the try-hard of the options (affectionate). It digs through history and calls it quits the second it finds a single trace. One and done. Periodt π
π SEE ALSO π
π AUTHOR π
Joey Hess <id@joeyh.name>
mwah π that's the whole page β courtesy of the General Commands Manual, page git-annex-whereused(1). go find your keys, bestie π¦β¨
π¦ 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