From a72b7b8c2f7ed1642a00c3499761d218415fc8b2 Mon Sep 17 00:00:00 2001 From: yarikoptic Date: Thu, 15 Apr 2021 02:30:33 +0000 Subject: [PATCH] initial todo/report on drop dropping a key "for all paths" --- ...rop_path__96___to_not_drop___34__all_copies__34__.mdwn | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100644 doc/todo/option_to___96__drop_path__96___to_not_drop___34__all_copies__34__.mdwn diff --git a/doc/todo/option_to___96__drop_path__96___to_not_drop___34__all_copies__34__.mdwn b/doc/todo/option_to___96__drop_path__96___to_not_drop___34__all_copies__34__.mdwn new file mode 100644 index 0000000000..829b250957 --- /dev/null +++ b/doc/todo/option_to___96__drop_path__96___to_not_drop___34__all_copies__34__.mdwn @@ -0,0 +1,8 @@ +Well, may be there is already a way, I could not find via search or look at `drop --help`. + +In our repositories/workflows we quite often encounter cases where multiple subfolders might contain the same (in content, and thus linking to the same key) file. At times it is desired to drop content in specific folders while still retaining annexed content for other folders in the tree (for further processing etc). + +`git annex drop path1` would drop a key path1 points to regardless either there is another path2 within a tree which points to it and might still be "needed". So what I am looking is some option (can't even come up with a good name for it, smth like `--not-used-elsewhere`?) for `drop`, so it would not drop keys which are used in the tree not pointed by `path`s provided to `drop` command. + +[[!meta author=yoh]] +[[!tag projects/datalad]]