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

How to restrict gitk to show only branch/merge commits?

From
JWJosef Wolf <jw@raven.inka.de>
Date
May 6, 2009, 07:20 UTC
Message-ID
<20090506072053.GL15420@raven.wolf.lan>
Hello,

I would like gitk to show me only the heads, branch-points and merge-points of branches.

For example, given a history like this:
                   d...e--F--g...h--H
                  /        \
 a1--a2...an--b--C          N--o...p--P
                  \        /
                   i...j--K--l...m--M
I would like to see only
 - a1     because it has no parent
 - C,F,K  because they are reachable from multiple heads
 - N      because it has multiple parents
 - H,M,P  because they are heads

Ideally, there would be a possibility to add some "context" to the list of commits to be shown: with $context==1, all the commits shown in the above history would be shown, but the commits indicated by the triple-dots would be omitted.

The reason is that I have some repositories with several really long linear history. It is hard to get a global overview about the branch history if you have to scroll constantly.

Is something like that possible with gitk?
Next: Andreas Ericsson
Message 1 of 3 in “How to restrict gitk to show only branch/merge commits?”
  1. Josef WolfMay 6, 2009
  2. Andreas EricssonMay 6, 2009
  3. Jakub NarebskiMay 6, 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.