ANNEX-TO-ANNEX(1p)
π ANNEX-TO-ANNEX π
okay bestie, so you know that one page in the perl docs, annex-to-annex(1p)? yeah. User contributed perl documentation, we love her. this is that, but make it make sense.
β¨ NAME β¨
annex-to-annex β the way that this uses hardlinks to migrate files between git annex repos π¦
πΈ VERSION πΈ
version 0.008 β yeah she's on 0.008, iconic behavior
π SYNOPSIS π
annex-to-annex [--commit] source ... destination
that's it. that's the whole vibe. source ... destination, periodt.
π DESCRIPTION π
So here's the tea, bestie: this script moves files and directories from one or more git annexes into a destination git annex. and the slay part? where possible it uses hardlinks instead of copying files. no cap. no wasted disk, no wasted time, just links. π
It's lowkey perfect for splitting and consolidating git annexes. Like, for example β and this is a real one β at the end of the semester she uses this script to move files from her work annex (which gets synced to, like, SO many places, everybody wants a piece) into an archival annex (which doesn't, she's mysterious, she stays home). π§
So, the deets:
- Each
sourceshould be a file or directory in a git annex. destinationshould be a subdirectory of a git annex.
that's the whole structure. sources go in, destination catches them. π«Ά
π OPTIONS π
--commitβ Commit changes in the source and destination annexes. Otherwise, the changes are merely added to the index. so like, without it you're just staging, no committing, no finalizing the moment. choose wisely. β
π SEE ALSO π
the girlies and them, fr fr:
π AUTHOR π
Sean Whitton <spwhitton@spwhitton.name> β an actual legend, we thank her for her service π«‘
π COPYRIGHT AND LICENSE π
This software is Copyright (c) 2019-2021 by Sean Whitton <spwhitton@spwhitton.name>.
This is free software, licensed under:
The GNU General Public License, Version 3, June 2007
okay so basically: free software, GPLv3, June 2007, respect the license bestie it's the law π
and that's the page!! this was ANNEX-TO-ANNEX(1p) from perl v5.40.1, dated 2025-03-04, living in the user contributed perl documentation section. mwah. go hardlink something. β¨ππ
π¦ where this page comes from
- debian trixie: libgit-annex-perl 0.008-2 Β· GPL-3.0-or-later
- ubuntu resolute: libgit-annex-perl 0.008-2 Β· GPL-3.0-or-later
- ubuntu stonking: libgit-annex-perl 0.008-2 Β· GPL-3.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms