git-annex-groupwanted(1)

omg hii bestie πŸ’– welcome to git-annex-groupwanted(1), straight outta the General Commands Manual ✨ this one is lowkey iconic: it gets or sets the groupwanted expression, and it's giving "group chat rules but for annex repos" 🫢

✨ NAME ✨

git-annex-groupwanted β€” get or set groupwanted expression πŸŽ€

🫢 SYNOPSIS 🫢

git annex groupwanted groupname [expression]

πŸ’– DESCRIPTION πŸ’–

Sets or displays the groupwanted expression. This will be used by repositories that are in the group, and that have their preferred content expression set to "groupwanted". periodt πŸ’…

For example, to configure a group named redundantarchive, and make repositories in the group want to contain 3 copies of every file, you'd do this exact vibe:

git annex groupwanted redundantarchive "not
(copies=redundantarchive:3)"
for repo in foo bar baz; do
     git annex group $repo redundantarchive
     git annex wanted $repo groupwanted
done
okay so important bestie: there must be exactly one groupwanted expression configured among all the groups that a repository is in; if there's more than one, none of them will be used 😭 yes, zero, not one, fr fr.

To clear a groupwanted expression, use an empty value for the expression, eg:

git-annex groupwanted foo ""

🌸 OPTIONS 🌸

The git-annex-common-options(1) can be used. that's the whole options moment, no cap ✨

πŸ¦‹ SEE ALSO πŸ¦‹

go read these besties, iykyk 🫢

πŸ‘‘ AUTHOR πŸ‘‘

Joey Hess <id@joeyh.name> wrote this one, slay πŸ’–


xoxo bestie, from the git-annex-groupwanted(1) page in the General Commands Manual πŸ’…βœ¨πŸ«Ά

πŸ“¦ where this page comes from