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