a77adab1438d5c99a31ad5b69f60af80460178dd
1 git-hash-object(1)
2 ==================
3 v0.1, May 2005
5 NAME
6 ----
7 git-hash-object - Computes object ID and optionally creates a blob from a file.
10 SYNOPSIS
11 --------
12 'git-hash-object' [-t <type>] [-w] <any-file-on-the-filesystem>
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".
24 OPTIONS
25 -------
27 -t <type>::
28 Specify the type (default: "blob").
30 -w::
31 Actually write the object into the object database.
33 Author
34 ------
35 Written by Junio C Hamano <junkio@cox.net>
37 Documentation
38 --------------
39 Documentation by David Greaves, Junio C Hamano and the git-list <git@vger.kernel.org>.
41 GIT
42 ---
43 Part of the link:git.html[git] suite