From: Shawn O. Pearce Date: Tue, 30 Jan 2007 07:29:10 GMT Subject: Re: blameview and file contents Message-ID: <20070130072910.GB32640@spearce.org> In-Reply-To: Aneesh Kumar wrote: > See i said that there should be a simple way. Can we get this > documented in git-cat-file man page Well, this isn't the git-cat-file man page, but we do suggest people use `git show HEAD:foo.c` to get foo.c from HEAD in an interactive setting. The git-show manpage refers people to git-rev-parse, which has the following: * A suffix ':' followed by a path; this names the blob or tree at the given path in the tree-ish object named by the part before the colon. In a non-interactive case, well, that's what git-cat-file is for. And typically is meant to mean what git-rev-parse will parse... But if you submit a documentation update to git-cat-file's manpage that points off to the same section of git-rev-parse, folks may appreciate it. :-) -- Shawn.