]> git.ipfire.org Git - thirdparty/git.git/blame - Documentation/git-hash-object.txt
Big tool rename.
[thirdparty/git.git] / Documentation / git-hash-object.txt
CommitLineData
7672db20
BL
1git-hash-object(1)
2==================
3v0.1, May 2005
4
5NAME
6----
7git-hash-object - Computes object ID and optionally creates a blob from a file.
8
9
10SYNOPSIS
11--------
12'git-hash-object' [-t <type>] [-w] <any-file-on-the-filesystem>
13
14DESCRIPTION
15-----------
16Computes the object ID value for an object with specified type
17with the contents of the named file (which can be outside of the
18work tree), and optionally writes the resulting object into the
19object database. Reports its object ID to its standard output.
215a7ad1 20This is used by "git-cvsimport" to update the cache
7672db20
BL
21without modifying files in the work tree. When <type> is not
22specified, it defaults to "blob".
23
2c6e4771
JS
24OPTIONS
25-------
26
27-t <type>::
28 Specify the type (default: "blob").
29
30-w::
31 Actually write the object into the object database.
7672db20
BL
32
33Author
34------
35Written by Junio C Hamano <junkio@cox.net>
36
37Documentation
38--------------
39Documentation by David Greaves, Junio C Hamano and the git-list <git@vger.kernel.org>.
40
41GIT
42---
43Part of the link:git.html[git] suite
44