From: linux@horizon.com
To: linux@horizon.com, spearce@spearce.org
Cc: git@vger.kernel.org
Subject: Re: How to do a reverse rebase?
Date: 20 Aug 2007 06:39:43 -0400 [thread overview]
Message-ID: <20070820103943.6046.qmail@science.horizon.com> (raw)
In-Reply-To: <20070820055809.GZ27913@spearce.org>
> I don't think so. To do the merge of those files we need a working
> directory to operate in; that working directory is the one you have.
> It sounds like what you want is this:
> old=`git symbolic-ref HEAD` &&
> git checkout HEAD^0 &&
> git cherry-pick debug_hack &&
> git branch -f debug_hack HEAD &&
> git checkout $old
Er, actually, I don't want the messing about with $old.
At the end of the day, I want to be on the tip of the rebased
work.
The problem is that git-cherry-pick only oves a single comit,
so if I have a stack, it's annoying.
It's more like:
git checkout HEAD^0 &&
for i in `git-rev-list --reverse ..debug_hack`; do
git-cherry-pick $i
done &&
git branch -D debug_hack &&
git checkout -b debug_hack
next prev parent reply other threads:[~2007-08-20 10:39 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-08-20 5:32 How to do a reverse rebase? linux
2007-08-20 5:58 ` Shawn O. Pearce
2007-08-20 6:33 ` Junio C Hamano
2007-08-20 10:39 ` linux [this message]
2007-08-20 9:49 ` Johannes Sixt
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=20070820103943.6046.qmail@science.horizon.com \
--to=linux@horizon.com \
--cc=git@vger.kernel.org \
--cc=spearce@spearce.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).