Re: How to view an old revision?
- From
- Matt McCutchen <hashproduct+git@gmail.com>
- Date
- Nov 1, 2006, 16:25 UTC
- Message-ID
- <3bbc18d20611010825ha4063d6wacf4f997d4652d35@mail.gmail.com>
- In-Reply-To
- <7vzmbb2m42.fsf@assigned-by-dhcp.cox.net>
On 11/1/06, Junio C Hamano <junkio@cox.net> wrote:
Show 6 quoted lines
> I was actually reviewing the documentation of git-rev-parse and > noticed that it talks about naming objects in the section called > "SPECIFYING REVISIONS". The title implies that it is about > committish (because we think of "revisions" as something that is > used in walking commit ancestry chains), but it actually talks > about naming objects of any type.
There's no way I would have known to look in git-rev-parse. My git-rev-parse man page doesn't mention the colon syntax, but now I see that part in git's gitweb; my man page must be too old. Either (1) or (2) would have been enough for me to figure out that the colon syntax would do what I wanted, but to grab the attention of the less persistent user, it would be good to mention the particular case of "git-cat-file <commit-ish>:<file>" in the git-cat-file man page.