git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Jakub Narebski <jnareb@gmail.com>
To: "Chris Packham" <judge.packham@gmail.com>
Cc: git@vger.kernel.org, Stephan Beyer <s-beyer@gmx.net>
Subject: Re: Removing a commit from a local branch
Date: Sun, 11 Jan 2009 14:48:07 -0800 (PST)	[thread overview]
Message-ID: <m3hc45zcgq.fsf@localhost.localdomain> (raw)
In-Reply-To: <a038bef50901111442y16695664y4fed7cdd9d8af27@mail.gmail.com>

"Chris Packham" <judge.packham@gmail.com> writes:

> Consider the following example. The maintainer has the following
> branch locally
> 
>   todeliver: A-B-C-D
> 
> He is happy with commits A, C and D but wants to reject B. Ideally I
> want to be able to say
>   git rebase --onto <parent of B> <child of B> todelvier
> 
> and get
>   todeliver: A-C'-D'
> 
> I know that <parent of B> can be referred to as B~1 but what about
> <child of B>? I've read through the man page for git-rev-parse and
> nothing stands out as child of commit X.
> 
> Is there a better what do achieve what I'm after?

Yes, I think it would be easier to either use "git rebase --interactive"
(with some script taking place of EDITOR, or something), or prod Stephan
Beyer (CC-ed) to finish git-sequencer...

-- 
Jakub Narebski
Poland
ShadeHawk on #git

  reply	other threads:[~2009-01-11 22:49 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <a038bef50901111441w21959397tc41922656a25027c@mail.gmail.com>
2009-01-11 22:42 ` Removing a commit from a local branch Chris Packham
2009-01-11 22:48   ` Jakub Narebski [this message]
2009-01-11 22:52   ` Björn Steinbrink
2009-01-12  0:12     ` Chris Packham
2009-01-12  1:20   ` Sitaram Chamarty

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=m3hc45zcgq.fsf@localhost.localdomain \
    --to=jnareb@gmail.com \
    --cc=git@vger.kernel.org \
    --cc=judge.packham@gmail.com \
    --cc=s-beyer@gmx.net \
    /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).