From: Thomas Rast <trast@student.ethz.ch>
To: Paul Mackerras <paulus@samba.org>
Cc: "Björn Steinbrink" <B.Steinbrink@gmx.de>,
git@vger.kernel.org, "Junio C Hamano" <gitster@pobox.com>,
"Adam Simpkins" <adam@adamsimpkins.net>
Subject: Re: [PATCH v2] gitk: fix direction of symmetric difference in optimized mode
Date: Thu, 6 Aug 2009 09:19:26 +0200 [thread overview]
Message-ID: <200908060919.27780.trast@student.ethz.ch> (raw)
In-Reply-To: <19066.8802.98042.957009@cargo.ozlabs.ibm.com>
Paul Mackerras wrote:
> Thomas Rast writes:
>
> > The confusing part of this, but also how I stumbled across the real
> > bug, was that I was playing with --show-all and that flipped the
> > direction *again*. Turns out the option is not recognized by gitk and
> > lets it go back to unoptimized mode, where the bug does not exist.
>
> What does --show-all do? Maybe I need to add support for it to gitk.
Support for _displaying_ it was added to gitk in 1407ade, even before
the option was added to the revision walker. Since it's a debugging
option, I doubt it's worth handling this in the optimized code path.
But anyway, it does not do what I hoped :-(
It shows commits that were walked, but found uninteresting, with a ^
in front. See the long explanation in 3131b71; you can try
gitk --show-all origin/next..origin/pu
for a nice example in git.git.
I was _actually_ looking for an option to make --cherry-pick
--left-right history connected again, as I was trying to make sense of
an SVN history basically by saying
gitk --left-right --cherry-pick svn/2.2...svn/trunk
(Incidentally this SVN is publicly available at
https://secure.a-eskwadraat.nl/svn/domjudge, but I doubt it's worth
the cloning.)
The problem with this is that it disconnects history, so I was looking
for an option to either get back the commits omitted by --cherry-pick
(but of course flagged in some way that shows they're duplicated) or
fix the parent pointers so that history becomes connected again. Some
of my guesses were --sparse, --full-history and --show-all, but none
achieve this.
[I *think* --sparse comes closest, but it's about TREESAME-type
uninteresting commits, not about --cherry-pick. --full-history is
only about the merges that are TREESAME, so that's out. --show-all
apparently is something entirely different.]
Sadly, it's really the underlying git-rev-list that is "broken" in the
sense that it does not fix the parent lists. And git log --graph
handles it much worse than gitk. I've added the authors of the
relevant features to Cc; maybe you can help?
--
Thomas Rast
trast@{inf,student}.ethz.ch
next prev parent reply other threads:[~2009-08-06 7:19 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-08-01 12:47 [GITK PATCH] gitk: fix direction of --left-right triangles Thomas Rast
2009-08-05 21:15 ` [PATCH v2] gitk: fix direction of symmetric difference in optimized mode Thomas Rast
[not found] ` <19066.8802.98042.957009@cargo.ozlabs.ibm.com>
2009-08-06 7:19 ` Thomas Rast [this message]
2009-08-08 16:34 ` [RFC PATCH] Simplify away duplicate commits with --cherry-pick --parents Thomas Rast
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=200908060919.27780.trast@student.ethz.ch \
--to=trast@student.ethz.ch \
--cc=B.Steinbrink@gmx.de \
--cc=adam@adamsimpkins.net \
--cc=git@vger.kernel.org \
--cc=gitster@pobox.com \
--cc=paulus@samba.org \
/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).