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

Re: [PATCH] Make 'diff C^!' show the same diff as 'show C'

From
Junio C Hamano <gitster@pobox.com>
Date
Aug 20, 2009, 22:25 UTC
Message-ID
<7vab1up1gz.fsf@alter.siamese.dyndns.org>
In-Reply-To
<86d1201d8adf53c1f48c0f3526d8e81475b18244.1250806019.git.trast@student.ethz.ch>
Thomas Rast <trast@student.ethz.ch> writes:
> Ideally, we'd like 'git diff C^!' to show the same diff that 'git show C'
> does (with log.showroot enabled).  This gives easy access to a readable
> diff for the commit, irrespective of how many parents it has and without
> any trickery to remove the commit message from the git-show output.
Not interested yet, as the "git show" discussion is not convincing at all.
Is the message annoying enough to warrant this change?

If that is indeed the case and if it is a common thing to ask, isn't it more productive to teach "show" a way to do so in a simpler way than doing, say,

	$ git show --pretty=format: HEAD
Previous: Thomas RastNext: Jeff King
Message 2 of 8 in “Make 'diff C^!' show the same diff as 'show C'”
  1. Make 'diff C^!' show the same diff as 'show C'Thomas Rast, Aug 20, 2009
  2. Junio C HamanoAug 20, 2009
  3. Jeff KingAug 20, 2009
  4. Junio C HamanoAug 20, 2009
  5. Thomas RastAug 20, 2009
  6. Junio C HamanoAug 20, 2009
  7. Junio C HamanoAug 20, 2009
  8. Junio C HamanoAug 20, 2009

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.