1 <?xml version="1.0" encoding="UTF-8"?>
\r
2 <!DOCTYPE article PUBLIC "-//OASIS//DTD DocBook XML V4.2//EN" "http://www.oasis-open.org/docbook/xml/4.2/docbookx.dtd">
\r
4 <article lang="en" id="git-get-tar-commit-id(1)">
\r
6 <title>git-get-tar-commit-id(1)</title>
\r
8 <primary>git-get-tar-commit-id(1)</primary>
\r
11 <simplesect id="_name">
\r
13 <simpara>git-get-tar-commit-id - Extract commit ID from an archive created using git-archive</simpara>
\r
15 <simplesect id="_synopsis">
\r
16 <title>SYNOPSIS</title>
\r
17 <simpara><emphasis>git get-tar-commit-id</emphasis> < <tarfile></simpara>
\r
19 <simplesect id="_description">
\r
20 <title>DESCRIPTION</title>
\r
21 <simpara>Acts as a filter, extracting the commit ID stored in archives created by
\r
22 <emphasis>git-archive</emphasis>. It reads only the first 1024 bytes of input, thus its
\r
23 runtime is not influenced by the size of <tarfile> very much.</simpara>
\r
24 <simpara>If no commit ID is found, <emphasis>git-get-tar-commit-id</emphasis> quietly exists with a
\r
25 return code of 1. This can happen if <tarfile> had not been created
\r
26 using <emphasis>git-archive</emphasis> or if the first parameter of <emphasis>git-archive</emphasis> had been
\r
27 a tree ID instead of a commit ID or tag.</simpara>
\r
29 <simplesect id="_author">
\r
30 <title>Author</title>
\r
31 <simpara>Written by Rene Scharfe <<ulink url="mailto:rene.scharfe@lsrfire.ath.cx">rene.scharfe@lsrfire.ath.cx</ulink>></simpara>
\r
33 <simplesect id="_documentation">
\r
34 <title>Documentation</title>
\r
35 <simpara>Documentation by Junio C Hamano and the git-list <<ulink url="mailto:git@vger.kernel.org">git@vger.kernel.org</ulink>>.</simpara>
\r
37 <simplesect id="_git">
\r
39 <simpara>Part of the <xref linkend="git(1)"/> suite</simpara>
\r