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

how to make gitk to use specified history information

From
LYLiu Yubao <yubao.liu@gmail.com>
Date
Nov 16, 2009, 07:51 UTC
Message-ID
<4B01049A.5090402@gmail.com>
Hi,
I want to obtain an outline of history information, for example:
  a - b - c - d - h -i -j
   \         /
    e- f - g
I simplify the graph like this:
  a - c - d - j
    \    /
      g
That's to say, I skip all commits that
  * have only one parent, and
  * have only one child, and
  * its child has only one parent

I checked `git help rev-list` but didn't find this feature, so I write a little script[1] to parse output of `git rev-list --parents --full-history --sparse --all` and get the simplified history: j d d c g c a g a

Now how can I make gitk to show this simpilified history? I have tried GraphViz but the history information is still so large that GraphViz crashes.

[1] http://jff.googlecode.com/svn/trunk/utils/git-branch-graph.pl
Best regards,
Liu Yubao
Next: Eric Raible
Message 1 of 4 in “how to make gitk to use specified history information”
  1. Liu YubaoNov 16, 2009
  2. Eric RaibleNov 16, 2009
  3. Liu YubaoNov 16, 2009
  4. dirty code to get an outline of commit history with gitk [Was: how to make gitk to use specified history information]Liu Yubao, Nov 16, 2009

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.