inprogress: Support --key

This commit is contained in:
Joey Hess 2019-12-18 14:04:14 -04:00
parent 92c566f1b2
commit 7fd5376334
No known key found for this signature in database
GPG key ID: DB12DB0FF05F8F38
6 changed files with 44 additions and 32 deletions

View file

@ -40,6 +40,10 @@ some file formats can be usefully streamed in this way.
Rather than specifying a filename or path, this option can be
used to access all files that are currently being downloaded.
* `--key=keyname`
Access the file that is currently being downloaded for the specified key.
* file matching options
The [[git-annex-matching-options]](1)
@ -47,7 +51,7 @@ some file formats can be usefully streamed in this way.
# EXIT STATUS
If any of the requested files are not currently being downloaded,
If any of the requested items are not currently being downloaded,
the exit status will be 1.
# SEE ALSO

View file

@ -6,3 +6,5 @@ Please consider adding a `--key` option there, which would display the single in
My use case is serving git-annexed files to the web from a bare repository (<https://gitlab.com/chrysn/annex-to-web>, see also [[todo/git-annex-cat]]), which would be especially useful with gitolite repositories as they are by design bare, and on devices where checkouts are cumbersome (cf. [[forum/Dealing_with_crippled_Android_file_system]]).
A workaround is running `git annex inprogress --all | grep $KEY`, but that's probably relying on an implementation detail that could be changed at any time (though it probably won't as to avoid race conditions as in `tail -f $(git annex inprogress file-thats-almost.done)`).
> [[done]] --[[Joey]]