git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: command to show diff of a commit

From
Petr Baudis <pasky@suse.cz>
Date
Sep 22, 2005, 10:04 UTC
Message-ID
<20050922100458.GF21019@pasky.or.cz>
In-Reply-To
<72499e3b05092202583f9a751d@mail.gmail.com>

Dear diary, on Thu, Sep 22, 2005 at 11:58:32AM CEST, I got a letter where Robert Watson <robert.oo.watson@gmail.com> told me that...

> Hi,
Hi,
Show 5 quoted lines
> 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
with Cogito, you would say
	cg-diff -p -r b163512d4eb36ee946908b682c7863658c5a8db4

to see the diff against its parent. (You should still choose the parent manually in case of merge commits.)

-- 
				Petr "Pasky" Baudis
Stuff: http://pasky.or.cz/
VI has two modes: the one in which it beeps and the one in which
it doesn't.
Previous: Robert WatsonNext: Robert Watson
Message 2 of 6 in “command to show diff of a commit”
  1. Robert WatsonSep 22, 2005
  2. Petr BaudisSep 22, 2005
  3. Robert WatsonSep 22, 2005
  4. Sven VerdoolaegeSep 22, 2005
  5. Linus TorvaldsSep 22, 2005
  6. Robert WatsonSep 23, 2005

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.