mirror of
https://github.com/git/git.git
synced 2024-09-28 20:51:42 +02:00
bundle: document handling of "-" as stdin
We have always allowed "bundle create -" to write to stdout, but it was never documented. And a recent patch let reading operations like "bundle list-heads -" read from stdin. Let's document all of these cases. Signed-off-by: Jeff King <peff@peff.net> Signed-off-by: Junio C Hamano <gitster@pobox.com>
This commit is contained in:
parent
bf8b1e04ff
commit
ef3b291a5f
@ -66,7 +66,7 @@ create [options] <file> <git-rev-list-args>::
|
|||||||
Used to create a bundle named 'file'. This requires the
|
Used to create a bundle named 'file'. This requires the
|
||||||
'<git-rev-list-args>' arguments to define the bundle contents.
|
'<git-rev-list-args>' arguments to define the bundle contents.
|
||||||
'options' contains the options specific to the 'git bundle create'
|
'options' contains the options specific to the 'git bundle create'
|
||||||
subcommand.
|
subcommand. If 'file' is `-`, the bundle is written to stdout.
|
||||||
|
|
||||||
verify <file>::
|
verify <file>::
|
||||||
Used to check that a bundle file is valid and will apply
|
Used to check that a bundle file is valid and will apply
|
||||||
@ -77,12 +77,13 @@ verify <file>::
|
|||||||
Finally, information about additional capabilities, such as "object
|
Finally, information about additional capabilities, such as "object
|
||||||
filter", is printed. See "Capabilities" in linkgit:gitformat-bundle[5]
|
filter", is printed. See "Capabilities" in linkgit:gitformat-bundle[5]
|
||||||
for more information. The exit code is zero for success, but will
|
for more information. The exit code is zero for success, but will
|
||||||
be nonzero if the bundle file is invalid.
|
be nonzero if the bundle file is invalid. If 'file' is `-`, the
|
||||||
|
bundle is read from stdin.
|
||||||
|
|
||||||
list-heads <file>::
|
list-heads <file>::
|
||||||
Lists the references defined in the bundle. If followed by a
|
Lists the references defined in the bundle. If followed by a
|
||||||
list of references, only references matching those given are
|
list of references, only references matching those given are
|
||||||
printed out.
|
printed out. If 'file' is `-`, the bundle is read from stdin.
|
||||||
|
|
||||||
unbundle <file>::
|
unbundle <file>::
|
||||||
Passes the objects in the bundle to 'git index-pack'
|
Passes the objects in the bundle to 'git index-pack'
|
||||||
@ -90,6 +91,7 @@ unbundle <file>::
|
|||||||
defined references. If a list of references is given, only
|
defined references. If a list of references is given, only
|
||||||
references matching those in the list are printed. This command is
|
references matching those in the list are printed. This command is
|
||||||
really plumbing, intended to be called only by 'git fetch'.
|
really plumbing, intended to be called only by 'git fetch'.
|
||||||
|
If 'file' is `-`, the bundle is read from stdin.
|
||||||
|
|
||||||
<git-rev-list-args>::
|
<git-rev-list-args>::
|
||||||
A list of arguments, acceptable to 'git rev-parse' and
|
A list of arguments, acceptable to 'git rev-parse' and
|
||||||
|
Loading…
Reference in New Issue
Block a user