diff options
author | Joey Hess <joeyh@joeyh.name> | 2017-12-28 11:46:39 -0400 |
---|---|---|
committer | Joey Hess <joeyh@joeyh.name> | 2017-12-28 11:46:39 -0400 |
commit | 29b1e4c69e96b1dab8ce8ae0579e988b17d33325 (patch) | |
tree | 92a28949a44f6af864de09bab74520f244e4c06b /doc | |
parent | 0bf7850898db15cca00b1d7ea6056a680aa42930 (diff) |
Added inprogress command for accessing files as they are being downloaded.
Chose to make this only handle files actively being downloaded, not temp
files for downloads that were interrupted or files that have been fully
downloaded.
This commit was sponsored by Ole-Morten Duesund on Patreon.
Diffstat (limited to 'doc')
-rw-r--r-- | doc/git-annex-inprogress.mdwn | 53 | ||||
-rw-r--r-- | doc/git-annex.mdwn | 6 |
2 files changed, 59 insertions, 0 deletions
diff --git a/doc/git-annex-inprogress.mdwn b/doc/git-annex-inprogress.mdwn new file mode 100644 index 000000000..1a595cba1 --- /dev/null +++ b/doc/git-annex-inprogress.mdwn @@ -0,0 +1,53 @@ +# NAME + +git-annex inprogress - access files while they're being downloaded + +# SYNOPSIS + +git annex inprogress `[path ...]` + +# DESCRIPTION + +This command allows accessing the content of an annexed file while +it is still being downloaded. It outputs to standard output the +name of the temporary file that is being used to download the specified +annexed file. + +This can sometimes be used to stream a file before it's been fully +downloaded, for example: + + git annex get video.mpeg & + vlc $(git annex inprogress video.mpeg) + +Of course if the file is downloading too slowly, the media player will +reach the end too soon and not show the whole thing. And of course, only +some file formats can be usefully streamed in this way. + +# OPTIONS + +* file matching options + + The [[git-annex-matching-options]](1) + can be used to specify files to access. + +* `--all` + + Rather than specifying a filename or path, this option can be + used to access all files that are currently being downloaded. + +# EXIT STATUS + +If any of the requested files are not currently being downloaded, +the exit status will be 1. + +# SEE ALSO + +[[git-annex]](1) + +[[git-annex-get]](1) + +# AUTHOR + +Joey Hess <id@joeyh.name> + +Warning: Automatically converted into a man page by mdwn2man. Edit with care. diff --git a/doc/git-annex.mdwn b/doc/git-annex.mdwn index 8f84f1d9e..d4502cdfa 100644 --- a/doc/git-annex.mdwn +++ b/doc/git-annex.mdwn @@ -461,6 +461,12 @@ subdirectories). See [[git-annex-map]](1) for details. +* `inprogress` + + Access files while they're being downloaded. + + See [[git-annex-inprogress]](1) for details. + # METADATA COMMANDS * `metadata [path ...]` |