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, 23:03 UTC
Message-ID
<7vws4ynl5e.fsf@alter.siamese.dyndns.org>
In-Reply-To
<200908210042.05802.trast@student.ethz.ch>
Thomas Rast <trast@student.ethz.ch> writes:
Show 7 quoted lines
>> 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
>
> That still doesn't get rid of the stray newline.

And the reason you don't want that newline, especially when you know there always is one so if you really wanted to you could easily sed it out, is...?

Previous: Thomas RastNext: Junio C Hamano
Message 6 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.