1GIT-GET-TAR-COMMI(1)              Git Manual              GIT-GET-TAR-COMMI(1)
2
3
4

NAME

6       git-get-tar-commit-id - Extract commit ID from an archive created using
7       git-archive
8

SYNOPSIS

10       git get-tar-commit-id
11

DESCRIPTION

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

GIT

24       Part of the git(1) suite
25
26
27
28Git 2.39.1                        2023-01-13              GIT-GET-TAR-COMMI(1)
Impressum