From 5e45befa1b685d3bf7d6378fdc45cf329fdbd60e Mon Sep 17 00:00:00 2001 From: Joey Hess Date: Wed, 24 Aug 2022 15:17:43 -0400 Subject: [PATCH] comment --- ...7_2155ce0ab07a84a4f36bcf92c29ec792._comment | 11 +++++++++++ ...8_5d63312c2efe3f1a25f9254ed230c66b._comment | 18 ++++++++++++++++++ 2 files changed, 29 insertions(+) create mode 100644 doc/todo/make_add_--batch_add_directories_content/comment_7_2155ce0ab07a84a4f36bcf92c29ec792._comment create mode 100644 doc/todo/make_add_--batch_add_directories_content/comment_8_5d63312c2efe3f1a25f9254ed230c66b._comment 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 index 0000000000..8246773408 --- /dev/null +++ b/doc/todo/make_add_--batch_add_directories_content/comment_7_2155ce0ab07a84a4f36bcf92c29ec792._comment @@ -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 index 0000000000..1bea823ec5 --- /dev/null +++ b/doc/todo/make_add_--batch_add_directories_content/comment_8_5d63312c2efe3f1a25f9254ed230c66b._comment @@ -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.) +"""]] -- 2.30.2