OSDN Git Service

Add Git official document to help
[tortoisegit/TortoiseGitJp.git] / doc / source / en / TortoiseGit / git_doc / git-hash-object.html.xml
1 <?xml version="1.0" encoding="UTF-8"?>\r
2 <!DOCTYPE article PUBLIC "-//OASIS//DTD DocBook XML V4.2//EN" "http://www.oasis-open.org/docbook/xml/4.2/docbookx.dtd">\r
3 \r
4 <article lang="en" id="git-hash-object(1)">\r
5 <articleinfo>\r
6     <title>git-hash-object(1)</title>\r
7         <indexterm>\r
8                 <primary>git-hash-object(1)</primary>\r
9         </indexterm>\r
10 </articleinfo>\r
11 <simplesect id="_name">\r
12 <title>NAME</title>\r
13 <simpara>git-hash-object - Compute object ID and optionally creates a blob from a file</simpara>\r
14 </simplesect>\r
15 <simplesect id="_synopsis">\r
16 <title>SYNOPSIS</title>\r
17 <blockquote>\r
18 <literallayout><emphasis>git hash-object</emphasis> [-t &lt;type&gt;] [-w] [--path=&lt;file&gt;|--no-filters] [--stdin] [--] &lt;file&gt;&#8230;\r
19 <emphasis>git hash-object</emphasis> [-t &lt;type&gt;] [-w] --stdin-paths &lt; &lt;list-of-paths&gt;</literallayout>\r
20 </blockquote>\r
21 </simplesect>\r
22 <simplesect id="_description">\r
23 <title>DESCRIPTION</title>\r
24 <simpara>Computes the object ID value for an object with specified type\r
25 with the contents of the named file (which can be outside of the\r
26 work tree), and optionally writes the resulting object into the\r
27 object database.  Reports its object ID to its standard output.\r
28 This is used by <emphasis>git-cvsimport</emphasis> to update the index\r
29 without modifying files in the work tree.  When &lt;type&gt; is not\r
30 specified, it defaults to "blob".</simpara>\r
31 </simplesect>\r
32 <simplesect id="_options">\r
33 <title>OPTIONS</title>\r
34 <variablelist>\r
35 <varlistentry>\r
36 <term>\r
37 -t &lt;type&gt;\r
38 </term>\r
39 <listitem>\r
40 <simpara>\r
41         Specify the type (default: "blob").\r
42 </simpara>\r
43 </listitem>\r
44 </varlistentry>\r
45 <varlistentry>\r
46 <term>\r
47 -w\r
48 </term>\r
49 <listitem>\r
50 <simpara>\r
51         Actually write the object into the object database.\r
52 </simpara>\r
53 </listitem>\r
54 </varlistentry>\r
55 <varlistentry>\r
56 <term>\r
57 --stdin\r
58 </term>\r
59 <listitem>\r
60 <simpara>\r
61         Read the object from standard input instead of from a file.\r
62 </simpara>\r
63 </listitem>\r
64 </varlistentry>\r
65 <varlistentry>\r
66 <term>\r
67 --stdin-paths\r
68 </term>\r
69 <listitem>\r
70 <simpara>\r
71         Read file names from stdin instead of from the command-line.\r
72 </simpara>\r
73 </listitem>\r
74 </varlistentry>\r
75 <varlistentry>\r
76 <term>\r
77 --path\r
78 </term>\r
79 <listitem>\r
80 <simpara>\r
81         Hash object as it were located at the given path. The location of\r
82         file does not directly influence on the hash value, but path is\r
83         used to determine what git filters should be applied to the object\r
84         before it can be placed to the object database, and, as result of\r
85         applying filters, the actual blob put into the object database may\r
86         differ from the given file. This option is mainly useful for hashing\r
87         temporary files located outside of the working directory or files\r
88         read from stdin.\r
89 </simpara>\r
90 </listitem>\r
91 </varlistentry>\r
92 <varlistentry>\r
93 <term>\r
94 --no-filters\r
95 </term>\r
96 <listitem>\r
97 <simpara>\r
98         Hash the contents as is, ignoring any input filter that would\r
99         have been chosen by the attributes mechanism, including crlf\r
100         conversion. If the file is read from standard input then this\r
101         is always implied, unless the --path option is given.\r
102 </simpara>\r
103 </listitem>\r
104 </varlistentry>\r
105 </variablelist>\r
106 </simplesect>\r
107 <simplesect id="_author">\r
108 <title>Author</title>\r
109 <simpara>Written by Junio C Hamano &lt;<ulink url="mailto:gitster@pobox.com">gitster@pobox.com</ulink>&gt;</simpara>\r
110 </simplesect>\r
111 <simplesect id="_documentation">\r
112 <title>Documentation</title>\r
113 <simpara>Documentation by David Greaves, Junio C Hamano and the git-list &lt;<ulink url="mailto:git@vger.kernel.org">git@vger.kernel.org</ulink>&gt;.</simpara>\r
114 </simplesect>\r
115 <simplesect id="_git">\r
116 <title>GIT</title>\r
117 <simpara>Part of the <xref linkend="git(1)"/> suite</simpara>\r
118 </simplesect>\r
119 </article>\r