<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE article PUBLIC "-//OASIS//DTD DocBook XML V4.2//EN" "http://www.oasis-open.org/docbook/xml/4.2/docbookx.dtd">

<article lang="en" id="git-get-tar-commit-id(1)">
<articleinfo>
    <title>git-get-tar-commit-id(1)</title>
        <indexterm>
                <primary>git-get-tar-commit-id(1)</primary>
        </indexterm>
</articleinfo>
<simplesect id="_name">
<title>NAME</title>
<simpara>git-get-tar-commit-id - Extract commit ID from an archive created using git-archive</simpara>
</simplesect>
<simplesect id="_synopsis">
<title>SYNOPSIS</title>
<simpara><emphasis>git get-tar-commit-id</emphasis> &lt; &lt;tarfile&gt;</simpara>
</simplesect>
<simplesect id="_description">
<title>DESCRIPTION</title>
<simpara>Acts as a filter, extracting the commit ID stored in archives created by
<emphasis>git-archive</emphasis>.  It reads only the first 1024 bytes of input, thus its
runtime is not influenced by the size of &lt;tarfile&gt; very much.</simpara>
<simpara>If no commit ID is found, <emphasis>git-get-tar-commit-id</emphasis> quietly exists with a
return code of 1.  This can happen if &lt;tarfile&gt; had not been created
using <emphasis>git-archive</emphasis> or if the first parameter of <emphasis>git-archive</emphasis> had been
a tree ID instead of a commit ID or tag.</simpara>
</simplesect>
<simplesect id="_author">
<title>Author</title>
<simpara>Written by Rene Scharfe &lt;<ulink url="mailto:rene.scharfe@lsrfire.ath.cx">rene.scharfe@lsrfire.ath.cx</ulink>&gt;</simpara>
</simplesect>
<simplesect id="_documentation">
<title>Documentation</title>
<simpara>Documentation by Junio C Hamano and the git-list &lt;<ulink url="mailto:git@vger.kernel.org">git@vger.kernel.org</ulink>&gt;.</simpara>
</simplesect>
<simplesect id="_git">
<title>GIT</title>
<simpara>Part of the <xref linkend="git(1)"/> suite</simpara>
</simplesect>
</article>
