Code

enable index-pack streaming capability
[git.git] / Documentation / git-index-pack.txt
index 71ce557276fd1bfe5e3ee1d3f03f94e066f23e81..db7af5859e90b02ec74ddad91cd46fab01c86e62 100644 (file)
@@ -8,7 +8,7 @@ git-index-pack - Build pack index file for an existing packed archive
 
 SYNOPSIS
 --------
-'git-index-pack' [-o <index-file>] <pack-file>
+'git-index-pack' [-o <index-file>] { <pack-file> | --stdin [<pack-file>] }
 
 
 DESCRIPTION
@@ -29,6 +29,12 @@ OPTIONS
        fails if the name of packed archive does not end
        with .pack).
 
+--stdin::
+       When this flag is provided, the pack is read from stdin
+       instead and a copy is then written to <pack-file>. If
+       <pack-file> is not specified, the pack is written to
+       objects/pack/ directory of the current git repository with
+       a default name determined from the pack content.
 
 Author
 ------