Documentation / git-cat-file.txton commit [PATCH] Docs - Makefile update (b2bf34d)
   1git-cat-file(1)
   2===============
   3v0.1, May 2005
   4
   5NAME
   6----
   7git-cat-file - Provide content or type information for repository objects
   8
   9
  10SYNOPSIS
  11--------
  12'git-cat-file' (-t | <type>) <object>
  13
  14DESCRIPTION
  15-----------
  16Provides content or type of objects in the repository. The type
  17is required if '-t' is not being used to find the object type.
  18
  19OPTIONS
  20-------
  21<object>::
  22        The sha1 identifier of the object.
  23
  24-t::
  25        Instead of the content, show the object type identified by
  26        <object>.
  27
  28<type>::
  29        Typically this matches the real type of <object> but asking
  30        for a type that can trivially dereferenced from the given
  31        <object> is also permitted.  An example is to ask for a
  32        "tree" with <object> being a commit object that contains it,
  33        or to ask for a "blob" with <object> being a tag object that
  34        points at it.
  35
  36OUTPUT
  37------
  38If '-t' is specified, one of the <type>.
  39
  40Otherwise the raw (though uncompressed) contents of the <object> will
  41be returned.
  42
  43
  44Author
  45------
  46Written by Linus Torvalds <torvalds@osdl.org>
  47
  48Documentation
  49--------------
  50Documentation by David Greaves, Junio C Hamano and the git-list <git@vger.kernel.org>.
  51
  52GIT
  53---
  54Part of the link:git.html[git] suite
  55