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

Re: rebase: Ask before doing anything not undoable

From
Thomas Braun <thomas.braun@virtuell-zuhause.de>
Date
Dec 20, 2018, 21:37 UTC
Message-ID
<53e97c08-1eaf-5f83-a699-5666376bb4c4@virtuell-zuhause.de>
In-Reply-To
<20181220211147.GA7426@localhost.localdomain>
Am 20.12.2018 um 22:11 schrieb Ricardo Biehl Pasquali:
Show 13 quoted lines
> Ccing the mailing list.
> 
> On Thu, Dec 20, 2018 at 07:26:53PM +0100, Kevin Daudt wrote:
>> It would be anoying for users to have to constantly confirm when they
>> run git rebase --continue. Rather than asking confirmation, it would be
>> better to make it easy to go back to the previous state.
> 
> I meant confirmation for --committer-date-is-author-date
> option.
> 
> As Thomas said, it should be possible to undo the action
> using reflog, although this seems not as easy as it should
> be yet.
The git rebase documentation has
ORIG_HEAD is set to point at the tip of the branch before the reset.
so doing
git reset ORIG_HEAD
does reset to the state before the rebase.

For avoiding the original problem of --co completing to --committer-date-is-author-date I'm using the alias rc for git rebase --continue.

Previous: Ricardo Biehl PasqualiNext: Ricardo Biehl Pasquali
Message 5 of 6 in “rebase: Ask before doing anything not undoable”
  1. Ricardo Biehl PasqualiDec 20, 2018
  2. Thomas BraunDec 20, 2018
  3. Ricardo Biehl PasqualiDec 20, 2018
  4. Ricardo Biehl PasqualiDec 20, 2018
  5. Thomas BraunDec 20, 2018
  6. Ricardo Biehl PasqualiDec 21, 2018

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.