blob: 616f196d81ca54595dc67f4846bace5880b9b90d [file] [log] [blame]
Junio C Hamano1a4e8412005-12-27 08:17:231git-hash-object(1)
2==================
3
4NAME
5----
Junio C Hamano7c73c662007-01-19 00:37:506git-hash-object - Compute object ID and optionally creates a blob from a file
Junio C Hamano1a4e8412005-12-27 08:17:237
8
9SYNOPSIS
10--------
11'git-hash-object' [-t <type>] [-w] [--stdin] [--] <file>...
12
13DESCRIPTION
14-----------
15Computes the object ID value for an object with specified type
16with the contents of the named file (which can be outside of the
17work tree), and optionally writes the resulting object into the
18object database. Reports its object ID to its standard output.
19This is used by "git-cvsimport" to update the index
20without modifying files in the work tree. When <type> is not
Junio C Hamanoa77a5132007-06-08 16:13:4421specified, it defaults to "blob".
Junio C Hamano1a4e8412005-12-27 08:17:2322
23OPTIONS
24-------
25
26-t <type>::
27Specify the type (default: "blob").
28
29-w::
30Actually write the object into the object database.
31
32--stdin::
33Read the object from standard input instead of from a file.
34
35Author
36------
37Written by Junio C Hamano <junkio@cox.net>
38
39Documentation
40--------------
41Documentation by David Greaves, Junio C Hamano and the git-list <git@vger.kernel.org>.
42
43GIT
44---
45Part of the gitlink:git[7] suite