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