blob: 1e2a20dd265c2c41aef0ea66ca9831321d951d5c [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 Hamanofce7c7e2008-07-02 03:06:3812'git get-tar-commit-id' < <tarfile>
Junio C Hamano1a4e8412005-12-27 08:17:2313
14
15DESCRIPTION
16-----------
17Acts as a filter, extracting the commit ID stored in archives created by
Junio C Hamano1aa40d22010-01-21 17:46:4318'git archive'. It reads only the first 1024 bytes of input, thus its
Junio C Hamano1a4e8412005-12-27 08:17:2319runtime is not influenced by the size of <tarfile> very much.
20
Junio C Hamano1aa40d22010-01-21 17:46:4321If no commit ID is found, 'git get-tar-commit-id' quietly exists with a
Junio C Hamano1a4e8412005-12-27 08:17:2322return code of 1. This can happen if <tarfile> had not been created
Junio C Hamano1aa40d22010-01-21 17:46:4323using 'git archive' or if the first parameter of 'git archive' had been
Junio C Hamano1a4e8412005-12-27 08:17:2324a tree ID instead of a commit ID or tag.
25
Junio C Hamano1a4e8412005-12-27 08:17:2326GIT
27---
Junio C Hamanof7c042d2008-06-06 22:50:5328Part of the linkgit:git[1] suite