1 <?xml version="1.0" encoding="UTF-8"?>
\r
2 <!DOCTYPE article PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN" "http://www.oasis-open.org/docbook/xml/4.5/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
18 <literallayout><emphasis>git get-tar-commit-id</emphasis> < <tarfile></literallayout>
\r
21 <simplesect id="_description">
\r
22 <title>DESCRIPTION</title>
\r
23 <simpara>Acts as a filter, extracting the commit ID stored in archives created by
\r
24 <emphasis>git archive</emphasis>. It reads only the first 1024 bytes of input, thus its
\r
25 runtime is not influenced by the size of <tarfile> very much.</simpara>
\r
26 <simpara>If no commit ID is found, <emphasis>git get-tar-commit-id</emphasis> quietly exists with a
\r
27 return code of 1. This can happen if <tarfile> had not been created
\r
28 using <emphasis>git archive</emphasis> or if the first parameter of <emphasis>git archive</emphasis> had been
\r
29 a tree ID instead of a commit ID or tag.</simpara>
\r
31 <simplesect id="_git">
\r
33 <simpara>Part of the <xref linkend="git(1)" /> suite</simpara>
\r