]> git.ipfire.org Git - thirdparty/git.git/blame - Documentation/git-get-tar-commit-id.txt
Merge branch 'hw/remove-api-docs-placeholder'
[thirdparty/git.git] / Documentation / git-get-tar-commit-id.txt
CommitLineData
7fc9d69f
JH
1git-get-tar-commit-id(1)
2========================
3
4NAME
5----
c251005c 6git-get-tar-commit-id - Extract commit ID from an archive created using git-archive
7fc9d69f
JH
7
8
9SYNOPSIS
10--------
7791a1d9 11[verse]
33e8fc87 12'git get-tar-commit-id'
760b6634 13
7fc9d69f
JH
14
15DESCRIPTION
16-----------
33e8fc87
JH
17
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.
760b6634 22
0b444cdb 23If no commit ID is found, 'git get-tar-commit-id' quietly exists with a
33e8fc87 24return code of 1. This can happen if the archive had not been created
0b444cdb 25using 'git archive' or if the first parameter of 'git archive' had been
760b6634 26a tree ID instead of a commit ID or tag.
7fc9d69f 27
7fc9d69f
JH
28GIT
29---
9e1f0a85 30Part of the linkgit:git[1] suite