From: Paul Mackerras <paulus@samba.org>
To: Martin d'Anjou <martin.danjou14@gmail.com>
Cc: Alex Henrie <alexhenrie24@gmail.com>,
Git mailing list <git@vger.kernel.org>
Subject: Re: gitk drawing bug
Date: Mon, 6 Apr 2015 13:11:35 +1000 [thread overview]
Message-ID: <20150406031134.GA26765@iris.ozlabs.ibm.com> (raw)
In-Reply-To: <551F3E20.5010306@gmail.com>
On Fri, Apr 03, 2015 at 09:28:00PM -0400, Martin d'Anjou wrote:
> On 15-04-03 07:05 PM, Alex Henrie wrote:
> >2015-02-18 12:27 GMT-07:00 Martin d'Anjou <martin.danjou14@gmail.com>:
> >>It appears I have uncovered inconsistent behaviour in gitk. Looks like
> >>a bug. I have a picture here:
> >>https://docs.google.com/document/d/19TTzGD94B9EEIrVU5mRMjfJFvF5Ar3MlPblRJfP5OdQ/edit?usp=sharing
> >>
> >>Essentially, when I hit shift-F5, it sometimes draw the history
> >>differently (still valid, but drawn differently). There is no change
> >>in the repository between the shift-F5 keystrokes.
That's not a bug, it's a consequence of the fact that gitk is designed
to be fast. It only lays out as much of the graph is visible plus a
little more, not the whole graph, and it doesn't use any global
analysis. The reason for that is speed. Gitk is usable on a
repository with half a million commits, such as the linux kernel, and
to achieve that we can't afford to do wait until we have all the
commits read in and then do some computation over the whole topology;
it all has to be done incrementally. Also, the underlying git log
sometimes gives gitk a parent commit before one of its children, and
when that happens the topology has to be modified and thus the graph
does too, if any topology that has already been drawn gets modified.
As long as the graph correctly shows the relationships between
commits, it has achieved its purpose. If you (or anyone) can come up
with improvements that make it look nicer, that's great, and I'll
consider them as long as they don't slow down gitk on large
repositories to any noticeable extent.
Paul.
prev parent reply other threads:[~2015-04-06 3:22 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-02-18 19:27 gitk drawing bug Martin d'Anjou
2015-04-03 23:05 ` Alex Henrie
2015-04-04 1:28 ` Martin d'Anjou
2015-04-06 3:11 ` Paul Mackerras [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20150406031134.GA26765@iris.ozlabs.ibm.com \
--to=paulus@samba.org \
--cc=alexhenrie24@gmail.com \
--cc=git@vger.kernel.org \
--cc=martin.danjou14@gmail.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).