git-annex-pre-commit(1)
π git-annex-pre-commit π
ok bestie, this is the git-annex-pre-commit(1) page, straight from the General Commands Manual, and it's honestly giving "tiny little helper that does SO much behind the scenes" energy π
β¨ NAME β¨
git-annex-pre-commit β run by git pre-commit hook π
β¨ SYNOPSIS β¨
git annex pre-commit [path ...]
πΈ DESCRIPTION πΈ
okay so, this one is meant to be called from git's pre-commit hook. like, that's literally its whole job. and the way that git annex init automatically creates a pre-commit hook using this?? iconic behavior, no notes, it just handles it for you π«Ά
what does it actually do tho? it fixes up symlinks that are staged as part of a commit, to make sure they point to annexed content. that's it. that's the task. lowkey essential, highkey underappreciated π
and when you're in a view? it updates metadata to reflect changes made to files in the view. so your view stays accurate and not messy. we love a self-maintaining queen β¨
π¦ OPTIONS π¦
- the
git-annex-common-options(1)can be used π
that's the whole list bestie, this one is short and sweet fr fr
π SEE ALSO π
π AUTHOR π
Joey Hess <id@joeyh.name> β yeah, the legend themselves, we stan ππ
and that's the whole page!! slay π this was git-annex-pre-commit(1), part of the git-annex manual set, and it's your girl signing off with all the love in the world πΈπ¦β¨ periodt.
π¦ 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