d7cd657ee430873b9aba5b9d0db28c5f204b6ddb
[git.git] / man1 / git-hash-object.1
1 .\"Generated by db2man.xsl. Don't modify this, modify the source.
2 .de Sh \" Subsection
3 .br
4 .if t .Sp
5 .ne 5
6 .PP
7 \fB\\$1\fR
8 .PP
9 ..
10 .de Sp \" Vertical space (when we can't use .PP)
11 .if t .sp .5v
12 .if n .sp
13 ..
14 .de Ip \" List item
15 .br
16 .ie \\n(.$>=3 .ne \\$3
17 .el .ne 3
18 .IP "\\$1" \\$2
19 ..
20 .TH "GIT-HASH-OBJECT" 1 "" "" ""
21 .SH NAME
22 git-hash-object \- Computes object ID and optionally creates a blob from a file.
23 .SH "SYNOPSIS"
24
25
26 git\-hash\-object [\-t <type>] [\-w] [\-\-stdin] [\-\-] <file>...
27
28 .SH "DESCRIPTION"
29
30
31 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 index without modifying files in the work tree\&. When <type> is not specified, it defaults to "blob"\&.
32
33 .SH "OPTIONS"
34
35 .TP
36 \-t <type>
37 Specify the type (default: "blob")\&.
38
39 .TP
40 \-w
41 Actually write the object into the object database\&.
42
43 .TP
44 \-\-stdin
45 Read the object from standard input instead of from a file\&.
46
47 .SH "AUTHOR"
48
49
50 Written by Junio C Hamano <junkio@cox\&.net>
51
52 .SH "DOCUMENTATION"
53
54
55 Documentation by David Greaves, Junio C Hamano and the git\-list <git@vger\&.kernel\&.org>\&.
56
57 .SH "GIT"
58
59
60 Part of the \fBgit\fR(7) suite
61