This commit is contained in:
Joey Hess 2025-02-25 17:26:28 -04:00
parent f8c7cea019
commit 2b8428bb17
No known key found for this signature in database
GPG key ID: DB12DB0FF05F8F38

View file

@ -27,8 +27,8 @@ unprotected, or otherwise executing it.
The program is run in a temporary directory, which will be cleaned up after The program is run in a temporary directory, which will be cleaned up after
it exits. Note that it may be run in a subdirectory of its temporary it exits. Note that it may be run in a subdirectory of its temporary
directory. Eg, when `git-annex addcomputed` is run in a `foo/bar/` directory. This is done when `git-annex addcomputed` was run in a subdirectory
subdirectory of the git repository. of the git repository.
The content of any annexed file in the repository can be an input The content of any annexed file in the repository can be an input
to the computation. The program requests an input by writing a line to to the computation. The program requests an input by writing a line to
@ -40,8 +40,8 @@ Then it can read a line from stdin, which will be the path to the content
(eg a `.git/annex/objects/` path). (eg a `.git/annex/objects/` path).
If the program needs multiple input files, it should output multiple If the program needs multiple input files, it should output multiple
`INPUT` lines at once, and then read multiple paths from stdin. This `INPUT` lines first, and then read multiple paths from stdin. This
allows retrival of the inputs to potentially run in parallel. allows retrieval of the inputs to potentially run in parallel.
If an input file is not available, the program's stdin will be closed If an input file is not available, the program's stdin will be closed
without a path being written to it. So when reading from stdin fails, without a path being written to it. So when reading from stdin fails,