open related todo
This commit is contained in:
parent
3d433d76a3
commit
20875bd5e8
2 changed files with 15 additions and 1 deletions
|
@ -25,5 +25,6 @@ are never included in --json-error-messages.
|
|||
I think it might be a good idea to add an actual API for detecting when
|
||||
there is this kind of problem, so datalad does not have to parse
|
||||
error messages (which could easily change). But that would need to be a
|
||||
separate discussion.
|
||||
separate discussion. I've opened
|
||||
[[todo/api_for_telling_when_nonexistant_or_non_git_files_passed]] for that.
|
||||
"""]]
|
||||
|
|
|
@ -0,0 +1,13 @@
|
|||
As seen in <https://github.com/datalad/datalad/pull/6510> datalad
|
||||
is having to parse error messages to determine when nonexistant
|
||||
filenames were passed to git-annex. It would be better if there was some
|
||||
kind of API that it could use, since error messages can (and have) changed.
|
||||
|
||||
What would this API look like? It seems it could not be a special
|
||||
exit status of git-annex, because exit status 101 is already allocated
|
||||
for indicating when things like --size-limit and --time-limit have caused
|
||||
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.
|
Loading…
Add table
Reference in a new issue