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

Re: Gitk strangeness..

From
Paul Mackerras <paulus@samba.org>
Date
Mar 28, 2006, 02:31 UTC
Message-ID
<17448.40941.256361.866229@cargo.ozlabs.ibm.com>
In-Reply-To
<Pine.LNX.4.64.0603271802030.15714@g5.osdl.org>
Linus Torvalds writes:
Show 5 quoted lines
> Paul, do this on the current git tree:
> 
> 	gitk b0a3de42..dff86e28
> 
> and tell me it doesn't look horrid.
Wow!  That's spectacular! :)
> Maybe it's not a new thing, and it's just that the recent pattern of 
> merges in the git tree makes any version of gitk do horrible things.

A large part of it is that I took out the stuff where gitk used to reorder the commits it got from git-rev-list. One of the side-effects of doing the reordering was that for commits which aren't listed in the git-rev-list output (i.e. which are drawn with open circles), gitk was able to draw them immediately after their last child. Now gitk doesn't discover that they aren't listed until it has drawn all the commits that are listed, which means we can get a whole pile of open-circle commits at the bottom of the graph.

I think the best thing to do is to change git-rev-list. One possibility would be to add an option to make git-rev-list omit parents that are not in the requested set, which would mean that gitk would not draw the open-circle commits any more.

The other option would be to make git-rev-list list the open-circle commits explicitly, with an indication that they are not in the requested set but are parents of commits in the requested set.

Or I can put the logic back into gitk. I'd rather do it in git-rev-list though since it will be faster that way.

Do you think that having the open-circle commits in the graph is useful?

Paul.
Previous: Junio C HamanoNext: Linus Torvalds
Message 18 of 33 in “What's in git.git”
  1. Junio C HamanoMar 28, 2006
  2. Add ALL_LDFLAGS to the git target.Jason Riedy, Mar 28, 2006
  3. Junio C HamanoMar 28, 2006
  4. Jason RiedyMar 28, 2006
  5. Junio C HamanoMar 28, 2006
  6. Jason RiedyMar 28, 2006
  7. Mark WoodingMar 28, 2006
  8. Linus TorvaldsMar 28, 2006
  9. Junio C HamanoMar 28, 2006
  10. Jason RiedyMar 28, 2006
  11. Junio C HamanoMar 29, 2006
  12. Mark WoodingMar 28, 2006
  13. Support for pickaxe matching regular expressionsPetr Baudis, Mar 29, 2006
  14. Johannes SchindelinMar 29, 2006
  15. Petr BaudisMar 29, 2006
  16. Gitk strangeness..Linus Torvalds, Mar 28, 2006
  17. Junio C HamanoMar 28, 2006
  18. Paul MackerrasMar 28, 2006
  19. Linus TorvaldsMar 28, 2006
  20. Junio C HamanoMar 28, 2006
  21. Paul MackerrasMar 28, 2006
  22. Junio C HamanoMar 28, 2006
  23. Paul MackerrasMar 28, 2006
  24. Junio C HamanoMar 28, 2006
  25. Paul MackerrasMar 28, 2006
  26. Junio C HamanoMar 29, 2006
  27. Junio C HamanoMar 29, 2006
  28. Alex RiesenMar 30, 2006
  29. Paul MackerrasMar 30, 2006
  30. Paul MackerrasMar 30, 2006
  31. Junio C HamanoMar 31, 2006
  32. Alex RiesenMar 31, 2006
  33. Linus TorvaldsMar 28, 2006

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.