From 42683457d0f80636ec66b39ef1f402cb9389e5d5 Mon Sep 17 00:00:00 2001 From: nobodyinperson Date: Tue, 22 Aug 2023 16:48:58 +0000 Subject: [PATCH] =?UTF-8?q?Added=20a=20comment:=20Oh=20yes=20please=20?= =?UTF-8?q?=F0=9F=A4=A9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ...1_43c11d9467b4d4460aa97bfb88b4896f._comment | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 doc/todo/command_to_list_keys_for_old_versions_of_files/comment_1_43c11d9467b4d4460aa97bfb88b4896f._comment diff --git a/doc/todo/command_to_list_keys_for_old_versions_of_files/comment_1_43c11d9467b4d4460aa97bfb88b4896f._comment b/doc/todo/command_to_list_keys_for_old_versions_of_files/comment_1_43c11d9467b4d4460aa97bfb88b4896f._comment new file mode 100644 index 0000000000..34183374ed --- /dev/null +++ b/doc/todo/command_to_list_keys_for_old_versions_of_files/comment_1_43c11d9467b4d4460aa97bfb88b4896f._comment @@ -0,0 +1,18 @@ +[[!comment format=mdwn + username="nobodyinperson" + avatar="http://cdn.libravatar.org/avatar/736a41cd4988ede057bae805d000f4f5" + subject="Oh yes please 🤩" + date="2023-08-22T16:48:58Z" + content=""" +`unusedkeys` would be consistently named with `git annex unused`. Would it make sense to teach `git annex unused` that? It could be taught to accept paths as arguments (it doesn't currently, right?) and then only operate on those to find old versions. Then no new command is necessary and people already know `unused`. The workflow would be: + +``` +# two-step +git annex unused file.txt +git annex move --unused --to there + +# new option to only list keys for further scripting +git annex unused --onlykeys file.txt | xargs ... +# maybe --batch is a better name 🤷 +``` +"""]]