git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Mike Galbraith <efault@gmx.de>
To: Avery Pennarun <apenwarr@gmail.com>
Cc: git <git@vger.kernel.org>
Subject: Re: failure doing massive revert
Date: Fri, 19 Sep 2008 11:35:41 +0200	[thread overview]
Message-ID: <1221816941.4914.145.camel@marge.simson.net> (raw)
In-Reply-To: <32541b130809181126v4ba4acd7pc5bda085740ab6ba@mail.gmail.com>

On Thu, 2008-09-18 at 14:26 -0400, Avery Pennarun wrote:
> On Thu, Sep 18, 2008 at 5:09 AM, Mike Galbraith <efault@gmx.de> wrote:
> > For reasons I'd rather not go into, I decided to create a merge free
> > tree to try to bisect.  I did this yesterday for a smaller range, and it
> > worked fine, and I was able to revert the reverts to re-apply.  Trying
> > to revert everything from v2.6.26..today croaked.
> >
> > for i in `git rev-list --no-merges v2.6.26..HEAD`; do git revert $i < /dev/null; done
> 
> Hmm, I don't think you can revert every single patch on a merged tree
> that way for the same reason you can't just rebase it: history wasn't
> linear.

Ok, nothing is broke, I just tripped over my white git-fu belt.

> I think something involving 'git rev-list --first-parent' and some
> variant of "git diff $i $i^ | git apply" might work better, as it
> would inherently squash merge commits, thus making them linearly
> reversible (although throwing away large parts of history).
> 
> Throwing away history might not be what you want, but then again,
> maybe it is.  It's the only way I know of to 100% reliably linearize
> the history, anyway.

Thanks, I'll save this reply in case I decide to resume hunt.

	-Mike 

      reply	other threads:[~2008-09-19  9:40 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-09-18  9:09 failure doing massive revert Mike Galbraith
2008-09-18 18:26 ` Avery Pennarun
2008-09-19  9:35   ` Mike Galbraith [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=1221816941.4914.145.camel@marge.simson.net \
    --to=efault@gmx.de \
    --cc=apenwarr@gmail.com \
    --cc=git@vger.kernel.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).