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

Re: [PATCH] git-cherry.txt: Change symbol marks in graph.

From
Junio C Hamano <gitster@pobox.com>
Date
Dec 2, 2010, 17:25 UTC
Message-ID
<7vy688rsry.fsf@alter.siamese.dyndns.org>
In-Reply-To
<m31v604nc0.fsf@localhost.localdomain>
Jakub Narebski <jnareb@gmail.com> writes:
Show 15 quoted lines
> Jari Aalto <jari.aalto@cante.net> writes:
>
>> From: Jari Aalto <jari.aalto@cante.net>
>> 
>> The common commit were marked with a minus sign (-), but that is
>> usually interpreted as something less or substracted. Use natural
>> equal sign (=). Commits that are not in upstream were marked with plus
>> sign (+) but a question mark (?) is visually a litle more striking
>> (erect) in context where all other signs are "flat". It also helps
>> visually impared to see difference between (* ... ?) as opposed to
>> similar signs (* ... +).
>
> Reading comprehension FAIL.  The graph in question uses '+' and '-' because
> that is what 'git cherry' *output( uses ('+' included, '-' excluded).  They
> are very natural in git-cherry output (diff-like).

Well, cherry's output is not "diff like". '+' is what you need to keep, as opposed to '-' that marks a commit that needs to be dropped from your side. If it were "diff like", '+' would have been spelled with a single ' ', but then commits on the other side you do not have need be included with '+' mark. However, 'git cherry' is not trying to produce a diff between branches; it does not matter what extra stuff the other side contains.

I however do agree with your conclusion; '=' is not "natural" in the context of 'git cherry' at all. "You need to drop this" comes more natural with '-'.

And obviously, the illustration in the documentation uses the same +/- that appear in the program's output.

So any change along the line of Jari's patch would be a dis-improvement.
Previous: Michael J GruberNext: Michael J Gruber
Message 4 of 7 in “git-cherry.txt: Change symbol marks in graph.”
  1. git-cherry.txt: Change symbol marks in graph.jari.aalto@cante.net, Dec 2, 2010
  2. Jakub NarebskiDec 2, 2010
  3. Michael J GruberDec 2, 2010
  4. Junio C HamanoDec 2, 2010
  5. Michael J GruberDec 2, 2010
  6. git-cherry.txt: Change symbol marks in graph.Jari Aalto, Dec 2, 2010
  7. Michael J GruberDec 2, 2010

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.