From b325dfea4d23f317ade82f9d75ecb86106496202 Mon Sep 17 00:00:00 2001 From: Dan Date: Thu, 16 Apr 2020 21:19:44 +0000 Subject: [PATCH] Added a comment: find wanted on remote? --- ...comment_7_b9d4cc7438ce5dbe22b62e9decc6cbee._comment | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 doc/git-annex-find/comment_7_b9d4cc7438ce5dbe22b62e9decc6cbee._comment diff --git a/doc/git-annex-find/comment_7_b9d4cc7438ce5dbe22b62e9decc6cbee._comment b/doc/git-annex-find/comment_7_b9d4cc7438ce5dbe22b62e9decc6cbee._comment new file mode 100644 index 0000000000..f09eecf551 --- /dev/null +++ b/doc/git-annex-find/comment_7_b9d4cc7438ce5dbe22b62e9decc6cbee._comment @@ -0,0 +1,10 @@ +[[!comment format=mdwn + username="Dan" + avatar="http://cdn.libravatar.org/avatar/986de9e060699ae70ff7c31342393adc" + subject="find wanted on remote?" + date="2020-04-16T21:19:44Z" + content=""" +Is there a way to use find to figure out what is wanted (for getting or dropping) on a given remote? I want to be able to do this to anticipate the outbound consequences of a sync (I can anticipate the inbound consequences of a sync, modulo file availability on remotes, using `git annex find --wanted-get --not --in here`). + +I could manually figure out the wanted expressions for an arbitrary remote (resolving any group assignments, etc) and then use that expression, but it'd be nice to be able to do something like `git annex find --wanted-get-at remotename --not --in remotename --in here` to figure out what things will get copied *to* the remote if I run `git annex sync --content`. I presume this logic is implemented somewhere since it gets used when doing `git annex sync --content`, and perhaps there's a way that I can do it using `git annex find` or other commands and I'm just not seeing how to do it. +"""]] -- 2.30.2