blob: ac44d85b0b5c7f12a2d5473b3be0b0e4511cf58f [file] [log] [blame]
Junio C Hamano7fc9d692005-08-23 01:49:47 -07001git-get-tar-commit-id(1)
2========================
3
4NAME
5----
J. Bruce Fieldsc2510052007-11-18 20:50:57 -05006git-get-tar-commit-id - Extract commit ID from an archive created using git-archive
Junio C Hamano7fc9d692005-08-23 01:49:47 -07007
8
9SYNOPSIS
10--------
Martin von Zweigbergk7791a1d2011-07-01 22:38:26 -040011[verse]
Junio C Hamano33e8fc82015-10-16 11:27:42 -070012'git get-tar-commit-id'
Rene Scharfe760b6632005-09-06 21:21:16 +020013
Junio C Hamano7fc9d692005-08-23 01:49:47 -070014
15DESCRIPTION
16-----------
Junio C Hamano33e8fc82015-10-16 11:27:42 -070017
18Read a tar archive created by 'git archive' from the standard input
19and extract the commit ID stored in it. It reads only the first
201024 bytes of input, thus its runtime is not influenced by the size
21of the tar archive very much.
Junio C Hamano7fc9d692005-08-23 01:49:47 -070022
Thomas Rast0b444cd2010-01-10 00:33:00 +010023If no commit ID is found, 'git get-tar-commit-id' quietly exists with a
Junio C Hamano33e8fc82015-10-16 11:27:42 -070024return code of 1. This can happen if the archive had not been created
Thomas Rast0b444cd2010-01-10 00:33:00 +010025using 'git archive' or if the first parameter of 'git archive' had been
Rene Scharfe760b6632005-09-06 21:21:16 +020026a tree ID instead of a commit ID or tag.
Junio C Hamano7fc9d692005-08-23 01:49:47 -070027
Junio C Hamano7fc9d692005-08-23 01:49:47 -070028GIT
29---
Christian Couder9e1f0a82008-06-06 09:07:32 +020030Part of the linkgit:git[1] suite