From: Bill Lear Date: Sun, 27 Jan 2008 14:31:44 GMT Subject: Re: Contents of file for a commit Message-ID: <18332.38352.952940.201025@lisa.zopyra.com> In-Reply-To: <20080127050127.GT24004@spearce.org> On Sunday, January 27, 2008 at 00:01:28 (-0500) Shawn O. Pearce writes: >Jeff King wrote: >> On Sat, Jan 26, 2008 at 11:40:27PM -0500, Shawn O. Pearce wrote: >> >> > You can also just view the file if you don't want those changes >> > to be made: >> > >> > `git show $commit -- $path` >> >> That doesn't work. It says "show me $commit, but limited by $path". So >> if $path was changed, you see the commit log and diff. If it wasn't, you >> see nothing. > >Gah. Indeed. I should have suggested to Bill: > >`git show $commit:$path` > >sorry about the confusion, and thanks for the clarification. :-) Ok, looks like that works. Thanks all. Bill