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

Re: Commit graph not using minimal number of columns

From
Derrick Stolee <derrickstolee@github.com>
Date
Apr 27, 2023, 13:02 UTC
Message-ID
<7ec7f7b2-3e7a-afb9-7042-a4375970e8d8@github.com>
In-Reply-To
<xmqqwn1ysfo4.fsf@gitster.g>
On 4/26/2023 1:43 PM, Junio C Hamano wrote:
Show 13 quoted lines
> Derrick Stolee <derrickstolee@github.com> writes:
> 
>> To adapt this algorithm to a newer, dynamic ordering that cares about
>> minimizing the rendered graph, I don't think changing the priority
>> queue comparison would be sufficient. Something deeper would be
>> required and would be quite messy.
> 
> Oh, I wasn't thinking about "graph-friendly" at all.  
> 
> I was wondering if we replaced --date-order implementation with
> corrected commit date from the generation number work would give us
> a better output order that users would expect in general (with or
> without --graph).
Ah. My mistake.

Corrected commit date should be equal to commit date unless there is clock skew causing a commit to be older than its parent, (or we have a path of commits with equal commit date) so I don't anticipate that being helpful in general.

Thanks, -Stolee

Previous: Junio C HamanoNext: Junio C Hamano
Message 7 of 8 in “Commit graph not using minimal number of columns”
  1. Javier MoraApr 25, 2023
  2. Junio C HamanoApr 25, 2023
  3. Derrick StoleeApr 26, 2023
  4. Junio C HamanoApr 26, 2023
  5. Derrick StoleeApr 26, 2023
  6. Junio C HamanoApr 26, 2023
  7. Derrick StoleeApr 27, 2023
  8. Junio C HamanoApr 27, 2023

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.