git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* unmerging feature branches
@ 2007-10-23 15:24 martin f krafft
  2007-10-23 16:19 ` Matthieu Moy
  2007-10-23 16:50 ` Linus Torvalds
  0 siblings, 2 replies; 16+ messages in thread
From: martin f krafft @ 2007-10-23 15:24 UTC (permalink / raw)
  To: git discussion list

[-- Attachment #1: Type: text/plain, Size: 1168 bytes --]

Dear list,

Let's say I developed a feature Foo on a branch off master, and at
some point I merged it back into master (commit M) and published the
repo. Since M, a number of commits have been made onto master.

Now I woul like to undo the merge.

I could rebase (M+1)..master onto M^ (on the former master branch),
but that would orphan the commits between the merge point and the
tip of master, which others are tracking.

I'd love to have git-revert, but that cannot undo a multi-parent
commit.

I could git-revert every commit on the feature branch between the
branch point and the merge point, even squash them into a single
commit, but that is a lot of work.

Are there any other methods? Is it conceivable to let git-revert
revert a merging commit if you tell it somehow which of the two (or
more) parents are the ones you want undone, meaning that you'd like
to keep the others?

-- 
martin | http://madduck.net/ | http://two.sentenc.es/
 
"a man who does not realise
 that he is half an animal
 is only half a man."
                                                    -- thornton wilder
 
spamtraps: madduck.bogus@madduck.net

[-- Attachment #2: Digital signature (see http://martin-krafft.net/gpg/) --]
[-- Type: application/pgp-signature, Size: 189 bytes --]

^ permalink raw reply	[flat|nested] 16+ messages in thread

end of thread, other threads:[~2007-10-31 21:35 UTC | newest]

Thread overview: 16+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-10-23 15:24 unmerging feature branches martin f krafft
2007-10-23 16:19 ` Matthieu Moy
2007-10-23 16:50 ` Linus Torvalds
2007-10-23 17:16   ` martin f krafft
2007-10-23 17:40     ` Linus Torvalds
2007-10-23 18:08       ` martin f krafft
2007-10-23 18:24         ` Linus Torvalds
2007-10-23 19:17           ` martin f krafft
2007-10-23 19:38             ` Linus Torvalds
2007-10-23 19:46               ` Linus Torvalds
2007-10-31 21:16       ` Alejandro Martinez Ruiz
2007-10-31 21:27         ` martin f krafft
2007-10-31 21:34         ` Linus Torvalds
2007-10-23 19:33   ` Junio C Hamano
2007-10-23 19:49     ` Linus Torvalds
2007-10-23 20:33       ` [PATCH] revert/cherry-pick: work on merge commits as well Junio C Hamano

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).