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

Re: Parameter --color-words not documented for "git show"

From
Jakub Narebski <jnareb@gmail.com>
Date
Jan 23, 2011, 10:35 UTC
Message-ID
<m38vybc3id.fsf@localhost.localdomain>
In-Reply-To
<7vk4hzqnbx.fsf@alter.siamese.dyndns.org>
Junio C Hamano <gitster@pobox.com> writes:
Show 25 quoted lines
> Sebastian Pipping <webmaster@hartwork.org> writes:
>> On 01/20/11 21:27, Thomas Rast wrote:
>>> Quote from the latter:
>>> 
>>>        This manual page describes only the most frequently used options.
>>
>> Okay.  Is that a good a idea?
> 
> Yes; the alternative is to list everything.
> 
>> Is --abbrev-commit really used more
>> frequently with "git show" than --color-words is?
> 
> I see this as a not-so-helpful-but-still-interesting question.
> 
> It depends on who you are, and if one wants to pick the most often used
> ones, that selection may or may not coincide with _your_ usage pattern nor
> mine.  The original author apparently thought so, you seem to think
> color-words is used a lot more often, and I personally think neither is
> used often at all.  So should we swap them, keep things as-is, or remove
> both?
> 
> We obviously cannot take a poll to update the list every time a new user
> starts using git, but it might make sense to review them every once in a
> while.

There is also additional problem, namely that because "git show" shows commit and can show diff, therefore it accepts same formatting options as "git log", and when set to display patch it accepts any diff family options.

Should we then list most common porcelanish diff options, or just refer to git-diff(1) manpage?

-- 
Jakub Narebski
Poland
ShadeHawk on #git
Previous: Jeff King
Message 14 of 14 in “Parameter --color-words not documented for "git show"”
  1. Sebastian PippingJan 20, 2011
  2. Thomas RastJan 20, 2011
  3. Sebastian PippingJan 20, 2011
  4. Junio C HamanoJan 20, 2011
  5. Nicolas SebrechtJan 20, 2011
  6. Jeff KingJan 20, 2011
  7. Sebastian PippingJan 21, 2011
  8. Jeff KingJan 21, 2011
  9. Sebastian PippingJan 21, 2011
  10. Junio C HamanoJan 21, 2011
  11. Jeff KingJan 21, 2011
  12. MaaartinJan 21, 2011
  13. Jeff KingJan 21, 2011
  14. Jakub NarebskiJan 23, 2011

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.