Junio C Hamano | 1a4e841 | 2005-12-27 08:17:23 | [diff] [blame] | 1 | git-get-tar-commit-id(1) |
| 2 | ======================== |
| 3 | |
| 4 | NAME |
| 5 | ---- |
Junio C Hamano | 393e57f | 2007-11-20 04:53:25 | [diff] [blame] | 6 | git-get-tar-commit-id - Extract commit ID from an archive created using git-archive |
Junio C Hamano | 1a4e841 | 2005-12-27 08:17:23 | [diff] [blame] | 7 | |
| 8 | |
| 9 | SYNOPSIS |
| 10 | -------- |
Junio C Hamano | 15567bc | 2011-07-23 00:51:59 | [diff] [blame] | 11 | [verse] |
Junio C Hamano | daf0aae | 2015-10-26 23:14:30 | [diff] [blame] | 12 | 'git get-tar-commit-id' |
Junio C Hamano | 1a4e841 | 2005-12-27 08:17:23 | [diff] [blame] | 13 | |
| 14 | |
| 15 | DESCRIPTION |
| 16 | ----------- |
Junio C Hamano | daf0aae | 2015-10-26 23:14:30 | [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 | 1a4e841 | 2005-12-27 08:17:23 | [diff] [blame] | 22 | |
Junio C Hamano | 1aa40d2 | 2010-01-21 17:46:43 | [diff] [blame] | 23 | If no commit ID is found, 'git get-tar-commit-id' quietly exists with a |
Junio C Hamano | daf0aae | 2015-10-26 23:14:30 | [diff] [blame] | 24 | return code of 1. This can happen if the archive had not been created |
Junio C Hamano | 1aa40d2 | 2010-01-21 17:46:43 | [diff] [blame] | 25 | using 'git archive' or if the first parameter of 'git archive' had been |
Junio C Hamano | 1a4e841 | 2005-12-27 08:17:23 | [diff] [blame] | 26 | a tree ID instead of a commit ID or tag. |
| 27 | |
Junio C Hamano | 1a4e841 | 2005-12-27 08:17:23 | [diff] [blame] | 28 | GIT |
| 29 | --- |
Junio C Hamano | f7c042d | 2008-06-06 22:50:53 | [diff] [blame] | 30 | Part of the linkgit:git[1] suite |