I just started experimenting with git annex, and I found that I would like to have a way to figure out metadata (well, size. Maybe modification date) of a non-local file. I first checked if there is "git annex ls" (which could list known files in an ls-like way) and found "git annex whereis" as somewhat a replacement, but it does not give metadata information.

When I want that, I ls -l the file and look at the symlink to the key. Ie, in SHA1-s10481423--efc7eec0d711212842cd6bb8f957e1628146d6ed the size is 10481423 bytes.
Comment by http://joey.kitenet.net/ Mon Nov 14 22:46:35 2011
It might make sense to put this functionality in git annex find. Perhaps a format string with a %s for example.
Comment by http://joey.kitenet.net/ Mon Nov 14 22:48:03 2011
Comments on this page are closed.