diff options
author | Daniel Barkalow <barkalow@iabervon.org> | 2005-12-10 17:25:24 -0500 |
---|---|---|
committer | Junio C Hamano <junkio@cox.net> | 2005-12-10 18:57:57 -0800 |
commit | 024510c8d947be6ae4765840e21a89d5a21271c4 (patch) | |
tree | 3a0912f20177e68e9e1e0e60b3aaea46ddc2fa32 /Documentation/git-hash-object.txt | |
parent | 10945e006a9567f4da1dac15cfdc1035752c5c5e (diff) | |
download | git-024510c8d947be6ae4765840e21a89d5a21271c4.tar.gz git-024510c8d947be6ae4765840e21a89d5a21271c4.tar.xz |
Allow saving an object from a pipe
In order to support getting data into git with scripts, this adds a
--stdin option to git-hash-object, which will make it read from stdin.
Signed-off-by: Daniel Barkalow <barkalow@iabervon.org>
Signed-off-by: Junio C Hamano <junkio@cox.net>
Diffstat (limited to 'Documentation/git-hash-object.txt')
-rw-r--r-- | Documentation/git-hash-object.txt | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/Documentation/git-hash-object.txt b/Documentation/git-hash-object.txt index db12e926f..0924931dc 100644 --- a/Documentation/git-hash-object.txt +++ b/Documentation/git-hash-object.txt @@ -8,7 +8,7 @@ git-hash-object - Computes object ID and optionally creates a blob from a file. SYNOPSIS -------- -'git-hash-object' [-t <type>] [-w] <file> +'git-hash-object' [-t <type>] [-w] [--stdin] [--] <file>... DESCRIPTION ----------- @@ -29,6 +29,9 @@ OPTIONS -w:: Actually write the object into the object database. +--stdin:: + Read the object from standard input instead of from a file. + Author ------ Written by Junio C Hamano <junkio@cox.net> |