]> git.ipfire.org Git - thirdparty/git.git/blame - Documentation/git-hash-object.txt
Documentation: be consistent about "git-" versus "git "
[thirdparty/git.git] / Documentation / git-hash-object.txt
CommitLineData
7672db20
BL
1git-hash-object(1)
2==================
7672db20
BL
3
4NAME
5----
c3f0baac 6git-hash-object - Compute object ID and optionally creates a blob from a file
7672db20
BL
7
8
9SYNOPSIS
10--------
b1889c36 11'git hash-object' [-t <type>] [-w] [--stdin | --stdin-paths] [--] <file>...
7672db20
BL
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.
5f3aa197 19This is used by "git-cvsimport" to update the index
7672db20 20without modifying files in the work tree. When <type> is not
a6080a0a 21specified, it defaults to "blob".
7672db20 22
2c6e4771
JS
23OPTIONS
24-------
25
26-t <type>::
27 Specify the type (default: "blob").
28
29-w::
30 Actually write the object into the object database.
7672db20 31
024510c8
DB
32--stdin::
33 Read the object from standard input instead of from a file.
34
d8ee4832
AR
35--stdin-paths::
36 Read file names from stdin instead of from the command-line.
37
7672db20
BL
38Author
39------
40Written by Junio C Hamano <junkio@cox.net>
41
42Documentation
43--------------
44Documentation by David Greaves, Junio C Hamano and the git-list <git@vger.kernel.org>.
45
46GIT
47---
9e1f0a85 48Part of the linkgit:git[1] suite