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

Re: [PATCH] rebase-interactive: show revert option and add single letter shortcut

From
Michael Lohmann <mial.lohmann@gmail.com>
Date
Dec 18, 2023, 17:26 UTC
Message-ID
<20231218172645.74133-1-mi.al.lohmann@gmail.com>
In-Reply-To
<20231218170912.73535-1-mi.al.lohmann@gmail.com>
Hi Phillip
> Thanks for the patch, I'm wondering why you want to revert a commit
> when you're rebasing.

I know this is probably not going to be the most used command, but I think (depending on your workflow) it can be as important as e.g. `reset` or `update-ref`

> I think it would be helpful to explain that in the commit message. In
> particular why it is necessary to revert a commit rather than simply
> dropping it (presumably you're using rebase to do something more that
> just rework a series of commits)

I gave two examples - maybe they can give a hint on why this actually can be a useful feature. Over the last few years I might have only wanted to do this twice or so, but I know that I read through the help string at least once to see how to do a revert.

Cheers!

P.S. I am sorry I missed the "v2" in the previous patch - I am still learning how to deal with the mailing list...

Previous: Michael LohmannNext: Junio C Hamano
Message 6 of 8 in “Why is `revert` undocumented in interactive rebase todo help?”
  1. Michael LohmannDec 18, 2023
  2. Johannes SchindelinDec 18, 2023
  3. rebase-interactive: show revert option and add single letter shortcutMichael Lohmann, Dec 18, 2023
  4. Phillip WoodDec 18, 2023
  5. rebase-interactive: show revert option and add single letter shortcutMichael Lohmann, Dec 18, 2023
  6. Michael LohmannDec 18, 2023
  7. Junio C HamanoDec 18, 2023
  8. Michael LohmannDec 20, 2023

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.