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