I can make git-annex
automatically fetch files with the preferred content setting and the --auto
flag, and it works almost exactly like I expect it to work.
What I am missing is a way to make git annex drop --auto
drop all files that are not wanted.
I would like to work with metadata and tags in such a way that I can have clones (with views) that have only exactly those files available which carry a tag (done), and all other files automatically removed from the annex (unless that would be unsafe).
Does anyone know how to achieve this?
git annex drop --auto
does automatically drop files that are not wanted, according to your preferred content settings.If your preferred content for a repo is
metadata=tag=done
, then only files tagged "done" will be kept in the repository.Of course, files are only dropped if enough other copies can be verified to exist in other repositories..