.\"Generated by db2man.xsl. Don't modify this, modify the source. .de Sh \" Subsection .br .if t .Sp .ne 5 .PP \fB\\$1\fR .PP .. .de Sp \" Vertical space (when we can't use .PP) .if t .sp .5v .if n .sp .. .de Ip \" List item .br .ie \\n(.$>=3 .ne \\$3 .el .ne 3 .IP "\\$1" \\$2 .. .TH "GIT-CAT-FILE" 1 "" "" "" .SH NAME git-cat-file \- Provide content or type information for repository objects .SH "SYNOPSIS" \fIgit\-cat\-file\fR [\-t | \-s | \-e | \-p | ] .SH "DESCRIPTION" Provides content or type of objects in the repository\&. The type is required unless \fI\-t\fR or \fI\-p\fR is used to find the object type, or \fI\-s\fR is used to find the object size\&. .SH "OPTIONS" .TP The sha1 identifier of the object\&. .TP \-t Instead of the content, show the object type identified by \&. .TP \-s Instead of the content, show the object size identified by \&. .TP \-e Suppress all output; instead exit with zero status if exists and is a valid object\&. .TP \-p Pretty\-print the contents of based on its type\&. .TP Typically this matches the real type of but asking for a type that can trivially be dereferenced from the given is also permitted\&. An example is to ask for a "tree" with being a commit object that contains it, or to ask for a "blob" with being a tag object that points at it\&. .SH "OUTPUT" If \fI\-t\fR is specified, one of the \&. If \fI\-s\fR is specified, the size of the in bytes\&. If \fI\-e\fR is specified, no output\&. If \fI\-p\fR is specified, the contents of are pretty\-printed\&. Otherwise the raw (though uncompressed) contents of the will be returned\&. .SH "AUTHOR" Written by Linus Torvalds .SH "DOCUMENTATION" Documentation by David Greaves, Junio C Hamano and the git\-list \&. .SH "GIT" Part of the \fBgit\fR(7) suite