Junio C Hamano | 7fc9d69 | 2005-08-23 01:49:47 -0700 | [diff] [blame] | 1 | git-get-tar-commit-id(1) |
| 2 | ======================== |
| 3 | |
| 4 | NAME |
| 5 | ---- |
J. Bruce Fields | c251005 | 2007-11-18 20:50:57 -0500 | [diff] [blame] | 6 | git-get-tar-commit-id - Extract commit ID from an archive created using git-archive |
Junio C Hamano | 7fc9d69 | 2005-08-23 01:49:47 -0700 | [diff] [blame] | 7 | |
| 8 | |
| 9 | SYNOPSIS |
| 10 | -------- |
Martin von Zweigbergk | 7791a1d | 2011-07-01 22:38:26 -0400 | [diff] [blame] | 11 | [verse] |
Junio C Hamano | 33e8fc8 | 2015-10-16 11:27:42 -0700 | [diff] [blame] | 12 | 'git get-tar-commit-id' |
Rene Scharfe | 760b663 | 2005-09-06 21:21:16 +0200 | [diff] [blame] | 13 | |
Junio C Hamano | 7fc9d69 | 2005-08-23 01:49:47 -0700 | [diff] [blame] | 14 | |
| 15 | DESCRIPTION |
| 16 | ----------- |
Junio C Hamano | 33e8fc8 | 2015-10-16 11:27:42 -0700 | [diff] [blame] | 17 | |
| 18 | Read a tar archive created by 'git archive' from the standard input |
| 19 | and extract the commit ID stored in it. It reads only the first |
| 20 | 1024 bytes of input, thus its runtime is not influenced by the size |
| 21 | of the tar archive very much. |
Junio C Hamano | 7fc9d69 | 2005-08-23 01:49:47 -0700 | [diff] [blame] | 22 | |
Thomas Rast | 0b444cd | 2010-01-10 00:33:00 +0100 | [diff] [blame] | 23 | If no commit ID is found, 'git get-tar-commit-id' quietly exists with a |
Junio C Hamano | 33e8fc8 | 2015-10-16 11:27:42 -0700 | [diff] [blame] | 24 | return code of 1. This can happen if the archive had not been created |
Thomas Rast | 0b444cd | 2010-01-10 00:33:00 +0100 | [diff] [blame] | 25 | using 'git archive' or if the first parameter of 'git archive' had been |
Rene Scharfe | 760b663 | 2005-09-06 21:21:16 +0200 | [diff] [blame] | 26 | a tree ID instead of a commit ID or tag. |
Junio C Hamano | 7fc9d69 | 2005-08-23 01:49:47 -0700 | [diff] [blame] | 27 | |
Junio C Hamano | 7fc9d69 | 2005-08-23 01:49:47 -0700 | [diff] [blame] | 28 | GIT |
| 29 | --- |
Christian Couder | 9e1f0a8 | 2008-06-06 09:07:32 +0200 | [diff] [blame] | 30 | Part of the linkgit:git[1] suite |