Hi!
I have a few questions according to deletion and dropping with git-annex:
- I couldn't figure out what unused files really are. What is unused related to? (Head of) branches? How does a file become unused?
- If I'm working in indirect mode, I can safely
git rm
files and restore them later, by checking out the corresponding commit. Consider several git-annex repos being in sync, where the repository contains a nested directory structure. Is there a way to completely remove all deletes files within some directory (which might but not must be the root of the repo), that have been deleted for more than X days? For example I would want to run something likegit annex drop-deleted --from-folder some/subdirectory/ --older-than 5
. Is there a way to achieve this? - Just like 2, is there a way to remove (the content of) all non-current versions of all file that are older than Y days?
Thanks in advance!
git-annex unused
finds files that are not used by the heads of any branches or tags. These files may still be referred to in individual commits in git history, or there could be no commits at all that refer to them. It's up to you to decide whether these are really "unused" or not.git-annex doesn't currently have an concept of file age. You can look at git history to find that out, but it's quite expensive to do that for a lot of files, and so a --older-than option would make it pretty slow.