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

Re: [PATCH] graph.c: visual difference on subsequent series

From
Junio C Hamano <gitster@pobox.com>
Date
Oct 28, 2013, 15:41 UTC
Message-ID
<xmqqeh75h087.fsf@gitster.dls.corp.google.com>
In-Reply-To
<87mwlwn4e0.fsf@gmail.com>
[administrivia: please avoid culling addresses from To:/Cc: lines]
Keshav Kini <keshav.kini@gmail.com> writes:
Show 7 quoted lines
> What about just putting an extra blank line after every root commit line
> (possibly except the last one)?  That should make it plenty easy to see
> where the root commits are in --oneline mode.  I think it would actually
> be easier to spot at a glance than replacing `*` with `x` because it
> creates a gap in all columns of the output, rather than only in column
> 1.  Also, this is very subjective but I think it looks kind of ugly to
> use "x" :P
I agree to all of the above, including the ugliness of 'x' ;-)

A "blank" may however be hard to spot, if the range is limited, though. For example,

    $ git log --graph --oneline a4..
      * HEAD
     /* a1
    | * a2
    | * a3
    * b1
    * b2
    * b3

where "a4", which is a root, is the sole parent of "a3" and HEAD is a merge between "a1" and "b1" might produce something like this, while we may get this from the same history, when shown unlimited:

    $ git log --graph --oneline
      * HEAD
     /* a1
    | * a2
    | * a3
    | * a4
    |
    * b1
    * b2
    * b3
A divider line might make it visually a lot more strong, i.e.
    $ git log --graph --oneline
      * HEAD
     /* a1
    | * a2
    | * a3
    | * a4
    |   ~~~~~~~~~~~~~~~~~~~~~~~
    * b1
    * b2
    * b3
but I am not sure if it is too distracting.
Previous: Keshav KiniNext: Keshav Kini
Message 5 of 11 in “graph.c: visual difference on subsequent series”
  1. graph.c: visual difference on subsequent seriesMilton Soares Filho, Oct 25, 2013
  2. Junio C HamanoOct 25, 2013
  3. Milton Soares FilhoOct 25, 2013
  4. Keshav KiniOct 26, 2013
  5. Junio C HamanoOct 28, 2013
  6. Keshav KiniOct 28, 2013
  7. Milton Soares FilhoOct 28, 2013
  8. Junio C HamanoOct 28, 2013
  9. graph: give an extra gap after showing root commitJunio C Hamano, Dec 20, 2013
  10. Junio C HamanoDec 20, 2013
  11. Thomas RastJan 3, 2014

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.