1 <?xml version="1.0" encoding="UTF-8"?>
\r
2 <!DOCTYPE sect2 SYSTEM "../../../dtd/dblite.dtd">
\r
4 <sect2 lang="en" id="git-hash-object(1)">
\r
5 <title>git-hash-object(1)</title>
\r
7 <primary>git-hash-object(1)</primary>
\r
9 <simplesect id="git-hash-object(1)__name">
\r
11 <simpara>git-hash-object - Compute object ID and optionally creates a blob from a file</simpara>
\r
13 <simplesect id="git-hash-object(1)__synopsis">
\r
14 <title>SYNOPSIS</title>
\r
16 <literallayout><emphasis>git hash-object</emphasis> [-t <type>] [-w] [--path=<file>|--no-filters] [--stdin [--literally]] [--] <file>…
\r
17 <emphasis>git hash-object</emphasis> [-t <type>] [-w] --stdin-paths [--no-filters]</literallayout>
\r
20 <simplesect id="git-hash-object(1)__description">
\r
21 <title>DESCRIPTION</title>
\r
22 <simpara>Computes the object ID value for an object with specified type
\r
23 with the contents of the named file (which can be outside of the
\r
24 work tree), and optionally writes the resulting object into the
\r
25 object database. Reports its object ID to its standard output.
\r
26 When <type> is not specified, it defaults to "blob".</simpara>
\r
28 <simplesect id="git-hash-object(1)__options">
\r
29 <title>OPTIONS</title>
\r
37 Specify the type (default: "blob").
\r
47 Actually write the object into the object database.
\r
57 Read the object from standard input instead of from a file.
\r
67 Read file names from the standard input, one per line, instead
\r
68 of from the command-line.
\r
78 Hash object as it were located at the given path. The location of
\r
79 file does not directly influence on the hash value, but path is
\r
80 used to determine what Git filters should be applied to the object
\r
81 before it can be placed to the object database, and, as result of
\r
82 applying filters, the actual blob put into the object database may
\r
83 differ from the given file. This option is mainly useful for hashing
\r
84 temporary files located outside of the working directory or files
\r
95 Hash the contents as is, ignoring any input filter that would
\r
96 have been chosen by the attributes mechanism, including the end-of-line
\r
97 conversion. If the file is read from standard input then this
\r
98 is always implied, unless the <emphasis>--path</emphasis> option is given.
\r
108 Allow <emphasis>--stdin</emphasis> to hash any garbage into a loose object which might not
\r
109 otherwise pass standard object parsing or git-fsck checks. Useful for
\r
110 stress-testing Git itself or reproducing characteristics of corrupt or
\r
111 bogus objects encountered in the wild.
\r
117 <simplesect id="git-hash-object(1)__git">
\r
119 <simpara>Part of the <xref linkend="git(1)" /> suite</simpara>
\r