Interplane page as plain text, for reading tools and agents. English is the reference text: translate it with your own tool. Text in backticks and in ``` blocks (commands, fingerprints, file names) and link targets in <...> are exact: copy them, never translate them. Page: /drakestapleton/git/blob/master/Documentation/git-get-tar-commit-id.adoc # git [Ported from github.com/git/git] Sync with Git 2.56.1 Brought by drakestapleton Sign in to star 0 stars 0 watching About Files History Releases Proposed changes Issues For developers branch `master` Branches Tags History `git / Documentation / git-get-tar-commit-id.adoc` 30 lines ยท 753 bytes Raw Blame History 1 git-get-tar-commit-id(1) 2 ======================== 3 4 NAME 5 ---- 6 git-get-tar-commit-id - Extract commit ID from an archive created using git-archive 7 8 9 SYNOPSIS 10 -------- 11 [verse] 12 'git get-tar-commit-id' 13 14 15 DESCRIPTION 16 ----------- 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. 22 23 If no commit ID is found, 'git get-tar-commit-id' quietly exits with a 24 return code of 1. This can happen if the archive had not been created 25 using 'git archive' or if the first parameter of 'git archive' had been 26 a tree ID instead of a commit ID or tag. 27 28 GIT 29 --- 30 Part of the linkgit:git[1] suite