X-Git-Url: https://git.octo.it/?a=blobdiff_plain;f=Documentation%2Fgit-hash-object.txt;h=04e8d004363a163930a4b8f583ab5ec997dbfe3c;hb=1a82e79315ed633f6b0b1fc4076054950c5380d3;hp=9239f11135d849ff0411e9ebef21ed8b1c83afd6;hpb=e634aec752642dcf86c3fc82025e43381d6768c2;p=git.git diff --git a/Documentation/git-hash-object.txt b/Documentation/git-hash-object.txt index 9239f111..04e8d004 100644 --- a/Documentation/git-hash-object.txt +++ b/Documentation/git-hash-object.txt @@ -3,12 +3,12 @@ git-hash-object(1) NAME ---- -git-hash-object - Computes object ID and optionally creates a blob from a file. +git-hash-object - Computes object ID and optionally creates a blob from a file SYNOPSIS -------- -'git-hash-object' [-t ] [-w] +'git-hash-object' [-t ] [-w] [--stdin] [--] ... DESCRIPTION ----------- @@ -16,7 +16,7 @@ Computes the object ID value for an object with specified type with the contents of the named file (which can be outside of the work tree), and optionally writes the resulting object into the object database. Reports its object ID to its standard output. -This is used by "git-cvsimport" to update the cache +This is used by "git-cvsimport" to update the index without modifying files in the work tree. When is not specified, it defaults to "blob". @@ -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