Re: [PATCH] Document the simple way of using of git-cat-file
- From
Jakub Narebski <jnareb@gmail.com>
- Date
- Dec 14, 2006, 00:35 UTC
- Message-ID
- <200612140135.33745.jnareb@gmail.com>
- In-Reply-To
- <Pine.LNX.4.63.0612140127520.3635@wbgn013.biozentrum.uni-wuerzburg.de>
Johannes Schindelin wrote:
Show 16 quoted lines
> On Thu, 14 Dec 2006, Jakub Narebski wrote: > >> Robin Rosenberg wrote: >> >>> Since you can give a version and a path name to git-cat-file, >>> mention it in the man page. >> >> Very nice, with the exception that git cat-file can be used also >> for trees and commits (although hit-ls-tree and git-show are usually >> used) and for tags, not only for files. > > The point is: you are much more likely to look at a blob that at a tree. > And if you want to do that, you can always use git-ls-tree. > > But as I mentioned in another thread, I'd rather see git-show do the job > of showing blobs, too, in addition to commits as it does already.
More important is that git-cat-file is used for _tags_; git-show used for tag takes tag as <commit-ish>, so it cannot show tag.
-- Jakub Narebski