summaryrefslogtreecommitdiff
path: root/Documentation/git-hash-object.txt
diff options
context:
space:
mode:
authorDaniel Barkalow <barkalow@iabervon.org>2005-12-10 17:25:24 -0500
committerJunio C Hamano <junkio@cox.net>2005-12-10 18:57:57 -0800
commit024510c8d947be6ae4765840e21a89d5a21271c4 (patch)
tree3a0912f20177e68e9e1e0e60b3aaea46ddc2fa32 /Documentation/git-hash-object.txt
parent10945e006a9567f4da1dac15cfdc1035752c5c5e (diff)
downloadgit-024510c8d947be6ae4765840e21a89d5a21271c4.tar.gz
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.txt5
1 files changed, 4 insertions, 1 deletions
diff --git a/Documentation/git-hash-object.txt b/Documentation/git-hash-object.txt
index db12e926f8..0924931dc1 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>