From: Linus Torvalds Date: Thu, 22 Sep 2005 15:20:51 GMT Subject: Re: command to show diff of a commit Message-ID: In-Reply-To: <72499e3b05092202583f9a751d@mail.gmail.com> On Thu, 22 Sep 2005, Robert Watson wrote: > > 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 Oh, absolutely. Do git-diff-tree -p --pretty b163512d4eb36ee946908b682c7863658c5a8db4 and you're done. If you _just_ want the diff (and not the message), skip the "--pretty". Linus