Added a comment

This commit is contained in:
Atemu 2023-12-25 13:37:58 +00:00 committed by admin
parent 2fe31d81d3
commit f58d629b95

View file

@ -0,0 +1,25 @@
[[!comment format=mdwn
username="Atemu"
avatar="http://cdn.libravatar.org/avatar/86b8c2d893dfdf2146e1bbb8ac4165fb"
subject="comment 2"
date="2023-12-25T13:37:58Z"
content="""
Sorry for the late reply but this somehow didn't reach me.
I just tried querying some basic stats such as `--not --copies 2` and running that with `git annex info .` works as expected:
```
directory: .
local annex keys: 0
local annex size: 0 bytes
annexed files in working tree: 0
size of annexed files in working tree: 0 bytes
```
`git annex info --not --copies 2` confusingly displays the repo overview and then starts calculating first local and then \"annexed files in working tree\" keys. It does not show the useful repo overview which displays how many matched keys are in each repo that has at least one however.
With that filter, `git annex info .` takes 15s in my case while `git annex info` takes 20s, likely due to the local key lookup. Trying to avoid the local lookup using `--fast` unfortunately also avoids the working tree lookup; outputting the same info as `git annex info --fast` without any filters which doesn't seem very useful.
Does the latter really query all keys however? It appears to me that it's the same as querying `.`. I have nearly 100 unused keys in that repo but both info commands show the same amount.
"""]]