X-Git-Url: https://git.octo.it/?a=blobdiff_plain;f=Documentation%2Fgit-hash-object.txt;h=04e8d004363a163930a4b8f583ab5ec997dbfe3c;hb=e8dff6ba8b12db94b728ff4d0ebf65040de92c37;hp=8790d19b2fee26ae5b7b04d0267ed3565908a514;hpb=98e031f0bb6e857c684e6db24d03d22cfc1a532a;p=git.git diff --git a/Documentation/git-hash-object.txt b/Documentation/git-hash-object.txt index 8790d19b..04e8d004 100644 --- a/Documentation/git-hash-object.txt +++ b/Documentation/git-hash-object.txt @@ -1,15 +1,14 @@ git-hash-object(1) ================== -v0.1, May 2005 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 ----------- @@ -17,10 +16,21 @@ 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-script" 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". +OPTIONS +------- + +-t :: + Specify the type (default: "blob"). + +-w:: + Actually write the object into the object database. + +--stdin:: + Read the object from standard input instead of from a file. Author ------ @@ -32,5 +42,5 @@ Documentation by David Greaves, Junio C Hamano and the git-list