git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: [PATCH 2/3] docs: explain why reverts are not always applied on merge

From
MÅMartin Ågren <martin.agren@gmail.com>
Date
Sep 13, 2020, 15:12 UTC
Message-ID
<CAN0heSrQR+6SsPHFtqcjYeFe1ce5USTxkxLXZ4g2MCqbV20K6g@mail.gmail.com>
In-Reply-To
<20200912204824.2824106-3-sandals@crustytoothpaste.net>

On Sat, 12 Sep 2020 at 22:51, brian m. carlson <sandals@crustytoothpaste.net> wrote:

Show 5 quoted lines
>
> A common scenario is for a user to apply a change to one branch and
> cherry-pick it into another, then later revert it in the first branch.
> This results in the change being present when the two branches are
> merge, which is confusing to many users.
s/merge/&d/
> +If this is a problem for you, you can do a rebase instead, rebasing the branch
> +with the revert onto the other branch.  A rebase in this scenario will revert
> +the change, because a rebase applies each individual commit, including the
> +revert.

Should this include the usual disclaimer about only rebasing a branch if it hasn't been published or if you (and your team) is willing and able to handle the fallout? I dunno. This piece of text is vague enough that the reader will have to pick up the "rebase ... onto" keywords and figure out the details some other way (and to be clear: I think that's a good thing). I think that should be sufficient and they'll find the disclaimer when they look up "rebase", if they don't already know it.

Martin
Previous: brian m. carlsonNext: brian m. carlson
Message 5 of 13 in “FAQ entries for merges and modified files”
  1. 0/3 FAQ entries for merges and modified filesbrian m. carlson, Sep 12, 2020
  2. 3/3 docs: explain how to deal with files that are always modifiedbrian m. carlson, Sep 12, 2020
  3. Martin ÅgrenSep 13, 2020
  4. 2/3 docs: explain why reverts are not always applied on mergebrian m. carlson, Sep 12, 2020
  5. Martin ÅgrenSep 13, 2020
  6. 1/3 docs: explain why squash merges are broken with long-running branchesbrian m. carlson, Sep 12, 2020
  7. Martin ÅgrenSep 13, 2020
  8. brian m. carlsonSep 13, 2020
  9. Junio C HamanoSep 12, 2020
  10. 0/3 FAQ entries for merges and modified filesbrian m. carlson, Sep 20, 2020
  11. 2/3 docs: explain why reverts are not always applied on mergebrian m. carlson, Sep 20, 2020
  12. 1/3 docs: explain why squash merges are broken with long-running branchesbrian m. carlson, Sep 20, 2020
  13. 3/3 docs: explain how to deal with files that are always modifiedbrian m. carlson, Sep 20, 2020

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.