git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* reducing line crossings in gitk
@ 2005-06-11 11:47 Paul Mackerras
  2005-06-11 18:26 ` Junio C Hamano
  2005-06-12 14:30 ` Matthias Urlichs
  0 siblings, 2 replies; 7+ messages in thread
From: Paul Mackerras @ 2005-06-11 11:47 UTC (permalink / raw)
  To: git

At the moment, the commit graph that gitk draws always displays the
parents of a merge in left-to-right order as they are listed in the
commit (provided that none of the parents already has a line, i.e., is
the parent of an previously drawn commit).  That means that for the
typical merge, the branch coming out to the right is the stuff that
was pulled in by the merge.

That can lead to a later line crossing if an ancestor of the stuff
being pulled in already has a line that is to the left of the merge.
For an example of what I mean, look at the kernel repository with gitk
at around commit 5ea6f2c33f0c8b126136dbf1776ffbc444772cd7 (Automatic
merge of /spare/repo/netdev-2.6 branch natsemi).

I could add a heuristic to look for this case and reverse the order of
the parents, which would reduce the line crossings and make the graph
look neater.  Would this be worth the slight loss of information (in
that the stuff pulled in would no longer always be to the right)?

Paul.

^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2005-06-16 15:01 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-06-11 11:47 reducing line crossings in gitk Paul Mackerras
2005-06-11 18:26 ` Junio C Hamano
2005-06-15 11:18   ` Paul Mackerras
2005-06-15 12:34     ` Jon Seymour
2005-06-16 12:26       ` Paul Mackerras
2005-06-16 15:05         ` Jon Seymour
2005-06-12 14:30 ` Matthias Urlichs

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).