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

Re: [CGit RFC/PATCH 0/5] Commit graph on CGit's 'log' view

From
LHLars Hjemli <hjemli@gmail.com>
Date
Jul 13, 2010, 22:57 UTC
Message-ID
<AANLkTilWENrG8wf1P4EMlzLSj0CdG9s3M8WAwmAZTYUX@mail.gmail.com>
In-Reply-To
<1279057221-28036-1-git-send-email-johan@herland.net>
On Tue, Jul 13, 2010 at 23:40, Johan Herland <johan@herland.net> wrote:
> Here are some patches to implement an ASCII-art commit graph on CGit's
> 'log' page. The patches reuse the graph-drawing code from Git's own
> 'git log --graph'. As such, these patches depend on the two patches
> I just submitted to the Git list for extending the graph.h API.

Thanks. I've applied the git patches to the jh/graph branch in git://hjemli.net/pub/git/git (based on v1.7.1-rc2) and updated the submodule in cgit to point at the tip of this branch. The cgit patches are then applied on top of this and merged into the wip branch in git://hjemli.net/pub/git/cgit.

The end result can be seen in action at http://hjemli.net/git/cgit/log [1] - it works, but I'll have to think about possible compromises between correctness and performance (i.e. the dependency on --topo-order).

-- larsh

[1] If the graph looks strange, you might have a cached cgit.css. Please force a reload in your browser.

Previous: Johan HerlandNext: Johan Herland
Message 5 of 12 in “Preparing the graph API for external users”
  1. 0/2 Preparing the graph API for external usersJohan Herland, Jul 13, 2010
  2. 1/2 Make graph_next_line() available in the graph.h APIJohan Herland, Jul 13, 2010
  3. 2/2 Enable custom schemes for column colors in the graph APIJohan Herland, Jul 13, 2010
  4. 0/5 Commit graph on CGit's 'log' viewJohan Herland, Jul 13, 2010
  5. Lars HjemliJul 13, 2010
  6. Johan HerlandJul 14, 2010
  7. Lars HjemliJul 18, 2010
  8. 1/5 ui-stats: Remove unnecessary #includeJohan Herland, Jul 13, 2010
  9. 2/5 ui-log: Move 'Age' column to the right of 'Author', like in gitkJohan Herland, Jul 13, 2010
  10. 3/5 ui-log: Refactor display of commit messagesJohan Herland, Jul 13, 2010
  11. 4/5 ui-log: Implement support for commit graphsJohan Herland, Jul 13, 2010
  12. 5/5 ui-log: Colorize commit graphJohan Herland, Jul 13, 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.