From 0863102ee63ce323bb8079d75a5f9ce64d213576 Mon Sep 17 00:00:00 2001 From: Joey Hess Date: Wed, 27 Apr 2016 13:35:33 -0400 Subject: [PATCH] response --- ..._925a6333ed6d19e4446c02829dae3aa2._comment | 26 +++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 doc/bugs/annex_drop_is_not___34__in_effect__34___for_load_which_was___34__addurl_--batch__34__ed_but_not_yet_committed/comment_1_925a6333ed6d19e4446c02829dae3aa2._comment diff --git a/doc/bugs/annex_drop_is_not___34__in_effect__34___for_load_which_was___34__addurl_--batch__34__ed_but_not_yet_committed/comment_1_925a6333ed6d19e4446c02829dae3aa2._comment b/doc/bugs/annex_drop_is_not___34__in_effect__34___for_load_which_was___34__addurl_--batch__34__ed_but_not_yet_committed/comment_1_925a6333ed6d19e4446c02829dae3aa2._comment new file mode 100644 index 0000000000..0383633654 --- /dev/null +++ b/doc/bugs/annex_drop_is_not___34__in_effect__34___for_load_which_was___34__addurl_--batch__34__ed_but_not_yet_committed/comment_1_925a6333ed6d19e4446c02829dae3aa2._comment @@ -0,0 +1,26 @@ +[[!comment format=mdwn + username="joey" + subject="""comment 1""" + date="2016-04-27T17:22:03Z" + content=""" +git-annex commands only operate on files that are checked into the git +repsitory, which is why drop skips this file that has not been staged yet. +I do not think it makes sense to change that. + +git-annex addurl batches changes to the index, which can speed up its +performance significantly when adding a lot of files. So until it's done +you can't operate on the files it adds. That speedup is really the only +reason to use addurl --batch, so it doesn't make sense to change it to not +have that optiomisation, otherwise you could just use it in non-batch mode +and drop after it's done. + +So, if you want to drop files as soon as addurl adds them, you need to +either not batch addurl, or you need to drop not by the name of the file +that has not need checked into git yet, but by the key. + +So, I think it would make sense for you to use dropkey in this case. +`git annex addurl --json --batch` already includes the key, +so you can just pass that along to `git annex dropkey --batch` + +(Do note though that dropkey doesn't verify that other copies exist..) +"""]]