git@vger.kernel.org mailing list mirror (one of many)
 help / color / mirror / code / Atom feed
From: Johannes Sixt <j6t@kdbg.org>
To: Shawn Landden <slandden@gmail.com>
Cc: git@vger.kernel.org
Subject: Re: rebase drops patches that have since been reverted
Date: Wed, 12 Jun 2019 18:55:22 +0200	[thread overview]
Message-ID: <2033f2fe-cc01-d7a6-bac3-4ba982a68425@kdbg.org> (raw)
In-Reply-To: <CA+49okrxjv63UQfQ1fMt6xC95Pjz2wuZu70WMS94vukTHevEaw@mail.gmail.com>

Am 12.06.19 um 17:03 schrieb Shawn Landden:
> If a patch has been applied upstream AND THEN reverted, rebase still
> drops the patch, requiring the use of relative rebase git rebase -i
> HEAD~5 et cetera.
> 
> git rebase should detect reverts as well.

You have the same patch that upstream has. Perhaps you cherry-picked it
from them, or they cherry-picked it from you. In any case, they thought
the patch was a good one.

Later upstream found a problem with the patch and decided to revert it.
Certainly, they didn't do this just for fun; they had a good reason.

Now you are rebasing against upstream. IOW, you are accepting the
authority of the upstream code. Then, why on earth would you not want to
accept their authorative word that the cherry-picked patch was bad and
needed to be reverted?

If you later find out that your patch is definitely needed, then it is
on you to prove that, for example, by including it again in your patch
series. That must be an explicit decision on your part, not an accident
that happens.

TLDR: Git worked as designed.

-- Hannes

      reply	other threads:[~2019-06-12 16:55 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-06-12 15:03 rebase drops patches that have since been reverted Shawn Landden
2019-06-12 16:55 ` Johannes Sixt [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

  List information: http://vger.kernel.org/majordomo-info.html

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=2033f2fe-cc01-d7a6-bac3-4ba982a68425@kdbg.org \
    --to=j6t@kdbg.org \
    --cc=git@vger.kernel.org \
    --cc=slandden@gmail.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.
Code repositories for project(s) associated with this public inbox

	https://80x24.org/mirrors/git.git

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 read-only IMAP folder(s) and NNTP newsgroup(s).