]> dgit.raspbian.org Git - git-annex.git/commitdiff
comment
authorJoey Hess <joeyh@joeyh.name>
Wed, 24 Aug 2022 17:26:42 +0000 (13:26 -0400)
committerJoey Hess <joeyh@joeyh.name>
Wed, 24 Aug 2022 17:26:42 +0000 (13:26 -0400)
doc/todo/make_add_--batch_add_directories_content/comment_2_5083e5a729f56dab76bdc97fb247b902._comment [new file with mode: 0644]

diff --git a/doc/todo/make_add_--batch_add_directories_content/comment_2_5083e5a729f56dab76bdc97fb247b902._comment b/doc/todo/make_add_--batch_add_directories_content/comment_2_5083e5a729f56dab76bdc97fb247b902._comment
new file mode 100644 (file)
index 0000000..981dd18
--- /dev/null
@@ -0,0 +1,16 @@
+[[!comment format=mdwn
+ username="joey"
+ subject="""comment 2"""
+ date="2022-08-24T17:19:02Z"
+ content="""
+The reason it does not recurse is that would make the number of lines/json
+records of output vary depending on the number of files in the directory.
+Which would complicate parsing git-annex's output.
+
+`git-annex add` is not actually special here. You can't
+pass a directory to `git-annex drop --batch` either.
+
+It seems to me that it's not hard to recurse directories yourself, and so
+it's better to offload the need to do that onto users of --batch, rather
+than making them deal with increased parsing complexity.
+"""]]