1GIT-GET-TAR-COMMI(1) Git Manual GIT-GET-TAR-COMMI(1)
2
3
4
6 git-get-tar-commit-id - Extract commit ID from an archive created using
7 git-archive
8
10 git get-tar-commit-id
11
13 Read a tar archive created by git archive from the standard input and
14 extract the commit ID stored in it. It reads only the first 1024 bytes
15 of input, thus its runtime is not influenced by the size of the tar
16 archive very much.
17
18 If no commit ID is found, git get-tar-commit-id quietly exists with a
19 return code of 1. This can happen if the archive had not been created
20 using git archive or if the first parameter of git archive had been a
21 tree ID instead of a commit ID or tag.
22
24 Part of the git(1) suite
25
26
27
28Git 2.33.1 2021-10-12 GIT-GET-TAR-COMMI(1)