From: Brian Foster <brian.foster@maxim-ic.com>
To: "git@vger.kernel.org" <git@vger.kernel.org>
Cc: Jonathan del Strother <maillist@steelskies.com>,
Junio C Hamano <gitster@pobox.com>
Subject: Re: [Q] Comparing differences introduced by two commits?
Date: Fri, 24 Aug 2012 10:52:37 +0200 [thread overview]
Message-ID: <5720224.TlUPhgDYky@laclwks004> (raw)
In-Reply-To: <CAF5DW8J8JL-jGexh+CmmCafFAREjAJrb8zzOwP8b9fEuqUB56w@mail.gmail.com>
On Wednesday 22-August-2012 10:55:29 Jonathan del Strother wrote:
> On 22 August 2012 17:58, Junio C Hamano <gitster@pobox.com> wrote:
> > Jonathan del Strother <maillist@steelskies.com> writes:
> >> On 22 August 2012 13:10, Brian Foster <brian.foster@maxim-ic.com> wrote:
> >> ...
> >>> In the past I've done:
> >>>
> >>> diff <(git show A) <(git show B)
> >>>
> >>> which produces rather messy output [...]
> >
> > Isn't this what interdiff is for?
I'd never(?) heard of interdiff(1) — THANKS!
With my current problem it produces (1) Some false results,
and (2) Gets enough patch-rejects so as to be useful only
in getting a 10km-high overview. Nonetheless, it's a help.
> >>> Some searching hasn't found any suggestions I'm too happy
> >>> with, albeit I've very possibly overlooked something.
> >>
> >> What about cherry picking B onto A, then showing the cherry-picked commit?
> >>[...]
> > I often do
> >
> > git checkout A^
> > git cherry-pick B
> > git diff A
> >
> > when queuing an updated patch.
This works fairly well. I get conflicts (not surprising),
which _probably_ corrolate rather well to the interdiff
patch-rejects (not checked), but the advantage here is I
can easily see what's going on (what the conflict _is_).
Neither compares commit-comments, but that is a obviously
a scriptable problem.
As it so happens, it turns out my number of A/B pairs is
rather less than expected (c.50 not the estimated c.90),
of which c.10 get cherry-pick conflicts. So the problem
is now looking quite tractable. Thanks for the help!
cheers,
-blf-
--
Brian Foster
Principal MTS, Software | La Ciotat, France
Maxim Integrated Products | Web: http://www.maxim-ic.com/
prev parent reply other threads:[~2012-08-24 9:11 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-08-22 12:10 [Q] Comparing differences introduced by two commits? Brian Foster
2012-08-22 15:15 ` Jonathan del Strother
2012-08-22 16:58 ` Junio C Hamano
2012-08-22 17:55 ` Jonathan del Strother
2012-08-24 8:52 ` Brian Foster [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=5720224.TlUPhgDYky@laclwks004 \
--to=brian.foster@maxim-ic.com \
--cc=git@vger.kernel.org \
--cc=gitster@pobox.com \
--cc=maillist@steelskies.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