Re: command to show diff of a commit
On Thu, Sep 22, 2005 at 03:25:01PM +0100, Robert Watson wrote:
Show 11 quoted lines
> On 9/22/05, Petr Baudis <pasky@suse.cz> wrote:
> > Dear diary, on Thu, Sep 22, 2005 at 11:58:32AM CEST, I got a letter
> > > I am wondering what is the best way to show the change introduced by a
> > > commit. In the other words, is there a better way to do this:
> > >
> > > git-diff b163512d4eb36ee946908b682c7863658c5a8db4^
> > > b163512d4eb36ee946908b682c7863658c5a8db4
> >
> Thanks, it is nice to know that cogito can go it. But can I achieve
> the same with git-core only?
>
I suppose this is slightly shorter:
git-whatchanged --max-count=1 -p b163512d4eb36ee946908b682c7863658c5a8db4
skimo