comment
authorJoey Hess <joeyh@joeyh.name>
Wed, 24 Aug 2022 19:17:43 +0000 (15:17 -0400)
committerJoey Hess <joeyh@joeyh.name>
Wed, 24 Aug 2022 19:17:43 +0000 (15:17 -0400)
doc/todo/make_add_--batch_add_directories_content/comment_7_2155ce0ab07a84a4f36bcf92c29ec792._comment [new file with mode: 0644]
doc/todo/make_add_--batch_add_directories_content/comment_8_5d63312c2efe3f1a25f9254ed230c66b._comment [new file with mode: 0644]

diff --git a/doc/todo/make_add_--batch_add_directories_content/comment_7_2155ce0ab07a84a4f36bcf92c29ec792._comment b/doc/todo/make_add_--batch_add_directories_content/comment_7_2155ce0ab07a84a4f36bcf92c29ec792._comment
new file mode 100644 (file)
index 0000000..8246773
--- /dev/null
@@ -0,0 +1,11 @@
+[[!comment format=mdwn
+ username="joey"
+ subject="""comment 7"""
+ date="2022-08-24T19:01:55Z"
+ content="""
+I do think there is value in the simplicity of the current json, even if a
+"better" one could be constructed if we did not need to worry about
+backwards compatability. A new JSON object that was only seen when
+recursing a directory would need to be documented, otherwise a JSON user
+would be likely to only implement support for the JSON objects they did see.
+"""]]
diff --git a/doc/todo/make_add_--batch_add_directories_content/comment_8_5d63312c2efe3f1a25f9254ed230c66b._comment b/doc/todo/make_add_--batch_add_directories_content/comment_8_5d63312c2efe3f1a25f9254ed230c66b._comment
new file mode 100644 (file)
index 0000000..1bea823
--- /dev/null
@@ -0,0 +1,18 @@
+[[!comment format=mdwn
+ username="joey"
+ subject="""re: comment 5"""
+ date="2022-08-24T19:06:20Z"
+ content="""
+git-annex uses git plumbing to handle this, so it's easy to do very close
+to the same thing:
+
+For most git-annex commands except `add`, you can get a list of files
+with `git ls-files --cached`. That will include annexed files and other
+files, but of course commands like `drop` will skip the non-annexed files
+and that can be handled with the existing `--batch` interface.
+
+For `add`, use `git ls-files --others --exclude-standard`
+
+(For `add`, it also looks at `git ls-files --modified`, but you only need
+that if you want to add files that got modified.)
+"""]]