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 < <tarfile>
11
12
14 Acts as a filter, extracting the commit ID stored in archives created
15 by git archive. It reads only the first 1024 bytes of input, thus its
16 runtime is not influenced by the size of <tarfile> 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 <tarfile> 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 1.8.3.1 11/19/2018 GIT-GET-TAR-COMMI(1)