]>
Commit | Line | Data |
---|---|---|
7fc9d69f JH |
1 | git-get-tar-commit-id(1) |
2 | ======================== | |
3 | ||
4 | NAME | |
5 | ---- | |
c251005c | 6 | git-get-tar-commit-id - Extract commit ID from an archive created using git-archive |
7fc9d69f JH |
7 | |
8 | ||
9 | SYNOPSIS | |
10 | -------- | |
7791a1d9 | 11 | [verse] |
33e8fc87 | 12 | 'git get-tar-commit-id' |
760b6634 | 13 | |
7fc9d69f JH |
14 | |
15 | DESCRIPTION | |
16 | ----------- | |
33e8fc87 JH |
17 | |
18 | Read a tar archive created by 'git archive' from the standard input | |
19 | and extract the commit ID stored in it. It reads only the first | |
20 | 1024 bytes of input, thus its runtime is not influenced by the size | |
21 | of the tar archive very much. | |
760b6634 | 22 | |
0b444cdb | 23 | If no commit ID is found, 'git get-tar-commit-id' quietly exists with a |
33e8fc87 | 24 | return code of 1. This can happen if the archive had not been created |
0b444cdb | 25 | using 'git archive' or if the first parameter of 'git archive' had been |
760b6634 | 26 | a tree ID instead of a commit ID or tag. |
7fc9d69f | 27 | |
7fc9d69f JH |
28 | GIT |
29 | --- | |
9e1f0a85 | 30 | Part of the linkgit:git[1] suite |