From f58d629b95111ad45e8b868f435e092432769d47 Mon Sep 17 00:00:00 2001 From: Atemu Date: Mon, 25 Dec 2023 13:37:58 +0000 Subject: [PATCH] Added a comment --- ..._2d0a6abd5be8afce677eeea575aae548._comment | 25 +++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 doc/todo/info__58___allow_file_matching_options_for_all_keys/comment_2_2d0a6abd5be8afce677eeea575aae548._comment diff --git a/doc/todo/info__58___allow_file_matching_options_for_all_keys/comment_2_2d0a6abd5be8afce677eeea575aae548._comment b/doc/todo/info__58___allow_file_matching_options_for_all_keys/comment_2_2d0a6abd5be8afce677eeea575aae548._comment new file mode 100644 index 0000000000..5b91f004fa --- /dev/null +++ b/doc/todo/info__58___allow_file_matching_options_for_all_keys/comment_2_2d0a6abd5be8afce677eeea575aae548._comment @@ -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. +"""]] -- 2.30.2