It would be nice to have git annex unused report the total size of unused files.
I tried:
- ❌
git annex unused: doesn't show the size - ❌
git annex info: doesn't list unused size - ❌
git annex info --unused: doesn't work - ❌
git annex list --unused: doesn't work - ❌
git annex find --unused: doesn't work
Maybe I'm missing something, but it feels like having git annex unused and git annex info directly report it would be nice.
Cheers, Yann
I found myself wanting this today, wondering if a
git-annex move --unusedwould fit into the destination.I think it would make sense to add it to
git-annex unused. Makinggit-annex infooutput vary depending on when and how unused was run last I don't like.Note that
git-annex infoalready shows the size of the keys in the temporary directory, and the bad directory.git-annex unusedlists the keys in those 2 directories, in separate tables from the unused keys.This is making me rethink whether it might make sense for
git-annex infoto display the total size of the unused keys as well. While that would make the output of info depend on whengit-annex unusedwas last run, and also on how it was run, it would be consistent.Also, someone may run
git-annex unusedregularly, or have run it and not paid much attention to the output, and not want to run it again in order to see how much space is used by the unused keys.And
infohas repository size information, so it would make sense to look at it when considering agit-annex move --unused.As for making
git-annex unusedalso report the size, it would necessarily use a different output format thangit-annex info. This feels like unnecessary duplication of functionality, even if it shared a common implementation.