summaryrefslogtreecommitdiffstats
path: root/man1/git-get-tar-commit-id.1
blob: 11fab425df88e648879e3406b84aebe9eb83fe10 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
'\" t
.\"     Title: git-get-tar-commit-id
.\"    Author: [FIXME: author] [see http://www.docbook.org/tdg5/en/html/author]
.\" Generator: DocBook XSL Stylesheets vsnapshot <http://docbook.sf.net/>
.\"      Date: 2024-04-16
.\"    Manual: Git Manual
.\"    Source: Git 2.44.0.651.g21306a098c
.\"  Language: English
.\"
.TH "GIT\-GET\-TAR\-COMMIT\-ID" "1" "2024\-04\-16" "Git 2\&.44\&.0\&.651\&.g21306a" "Git Manual"
.\" -----------------------------------------------------------------
.\" * Define some portability stuff
.\" -----------------------------------------------------------------
.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
.\" http://bugs.debian.org/507673
.\" http://lists.gnu.org/archive/html/groff/2009-02/msg00013.html
.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
.ie \n(.g .ds Aq \(aq
.el       .ds Aq '
.\" -----------------------------------------------------------------
.\" * set default formatting
.\" -----------------------------------------------------------------
.\" disable hyphenation
.nh
.\" disable justification (adjust text to left margin only)
.ad l
.\" -----------------------------------------------------------------
.\" * MAIN CONTENT STARTS HERE *
.\" -----------------------------------------------------------------
.SH "NAME"
git-get-tar-commit-id \- Extract commit ID from an archive created using git\-archive
.SH "SYNOPSIS"
.sp
.nf
\fIgit get\-tar\-commit\-id\fR
.fi
.sp
.SH "DESCRIPTION"
.sp
Read a tar archive created by \fIgit archive\fR from the standard input and extract the commit ID stored in it\&. It reads only the first 1024 bytes of input, thus its runtime is not influenced by the size of the tar archive very much\&.
.sp
If no commit ID is found, \fIgit get\-tar\-commit\-id\fR quietly exits with a return code of 1\&. This can happen if the archive had not been created using \fIgit archive\fR or if the first parameter of \fIgit archive\fR had been a tree ID instead of a commit ID or tag\&.
.SH "GIT"
.sp
Part of the \fBgit\fR(1) suite