inventory of files unavailable in local repository?

Adam Spiers vcs-home at adamspiers.org
Thu Dec 22 21:59:08 CET 2011


On Thu, Dec 22, 2011 at 8:47 PM, Adam Spiers <vcs-home at adamspiers.org> wrote:
> On Thu, Dec 22, 2011 at 8:36 PM, Richard Hartmann
> <richih.mailinglist at gmail.com> wrote:
>> Did you try --not?
>
> Ahah!  I think this works:
>
>    git annex find --not --in=
>
> Thanks!

Unfortunately this is cripplingly slow:

$ time symlinks -r . | egrep '^dangling: .+/\.git/annex/objects/' |
awk '{print $2}' >/dev/null
symlinks -r .  0.15s user 0.37s system 97% cpu 0.536 total
egrep '^dangling: .+/\.git/annex/objects/'  0.01s user 0.00s system 1%
cpu 0.534 total
awk '{print $2}' > /dev/null  0.00s user 0.00s system 1% cpu 0.526 total

$ time git annex find --not --in= >/dev/null
git annex find --not --in= > /dev/null  6.73s user 1.76s system 21%
cpu 39.483 total

Ouch!  Joey, is there an optimization that can be made for the local case here?


More information about the vcs-home mailing list