blob: ac44d85b0b5c7f12a2d5473b3be0b0e4511cf58f [file] [log] [blame]
Junio C Hamano1a4e8412005-12-27 08:17:231git-get-tar-commit-id(1)
2========================
3
4NAME
5----
Junio C Hamano393e57f2007-11-20 04:53:256git-get-tar-commit-id - Extract commit ID from an archive created using git-archive
Junio C Hamano1a4e8412005-12-27 08:17:237
8
9SYNOPSIS
10--------
Junio C Hamano15567bc2011-07-23 00:51:5911[verse]
Junio C Hamanodaf0aae2015-10-26 23:14:3012'git get-tar-commit-id'
Junio C Hamano1a4e8412005-12-27 08:17:2313
14
15DESCRIPTION
16-----------
Junio C Hamanodaf0aae2015-10-26 23:14:3017
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 Hamano1a4e8412005-12-27 08:17:2322
Junio C Hamano1aa40d22010-01-21 17:46:4323If no commit ID is found, 'git get-tar-commit-id' quietly exists with a
Junio C Hamanodaf0aae2015-10-26 23:14:3024return code of 1. This can happen if the archive had not been created
Junio C Hamano1aa40d22010-01-21 17:46:4325using 'git archive' or if the first parameter of 'git archive' had been
Junio C Hamano1a4e8412005-12-27 08:17:2326a tree ID instead of a commit ID or tag.
27
Junio C Hamano1a4e8412005-12-27 08:17:2328GIT
29---
Junio C Hamanof7c042d2008-06-06 22:50:5330Part of the linkgit:git[1] suite