]> dgit.raspbian.org Git - git-annex.git/commitdiff
update
authorJoey Hess <joeyh@joeyh.name>
Mon, 28 Feb 2022 17:37:05 +0000 (13:37 -0400)
committerJoey Hess <joeyh@joeyh.name>
Mon, 28 Feb 2022 17:37:05 +0000 (13:37 -0400)
doc/todo/api_for_telling_when_nonexistant_or_non_git_files_passed.mdwn

index 64fbe17c12fb727e60ce88e41edead6c76050b0c..d61d17f9386cb29a147d07dca08212bc32261088 100644 (file)
@@ -11,3 +11,17 @@ it to skip processing certian files.
 Perhaps something like `--json-error-unmatch` which would make it output
 an additional line with a JSON record indicating that git ls-files
 --error-unmatch had errored out.
+
+Or `--json` could enable this additional JSON record output.
+The advantage would be that datalad would not need to check the git-annex
+version to see if the option is supported. It would need to output a
+JSON record even when git-ls-files did not fail. Perhaps something like
+this:
+
+       {"git-ls-files exit status": 0}
+       {"git-ls-files exit-status": 1}
+
+This does risk breaking things that parse the existing JSON and fall
+over on the new record, but I think git-annex should be free to add new
+records and fields to its JSON output in general, and it has probably
+at least added new fields before. --[[Joey]]