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

Re: [PATCH] rebase: apply and cleanup autostash when rebase fails to start

From
Junio C Hamano <gitster@pobox.com>
Date
Sep 8, 2024, 21:54 UTC
Message-ID
<xmqqv7z5vmk3.fsf@gitster.g>
In-Reply-To
<0ca8ce79-6c9f-4836-99d6-b2a86dfe4109@gmail.com>
Phillip Wood <phillip.wood123@gmail.com> writes:
Show 5 quoted lines
> ... This code is just doing what we do at
> the end of a successful rebase so I'm don't really understand what the
> issue is. Looking at finish_rebase() we don't even check the return
> value of apply_autostash() when applying the stash at the end of a
> successful rebase.

At that point we give control back the user, so if things are left in conflicted or any other "unexpected" funny state, the user kill keep the both halves. As long as the user clearly understands why the working tree is in such a funny state, we should be OK (and I would imagine that we are giving messages like "applying preexisting changes stashed away before rebasing" or something).

Thanks.
Previous: Junio C HamanoNext: Phillip Wood via GitGitGadget
Message 7 of 10 in “rebase: apply and cleanup autostash when rebase fails to start”
  1. rebase: apply and cleanup autostash when rebase fails to startPhillip Wood via GitGitGadget, Aug 14, 2024
  2. Patrick SteinhardtAug 14, 2024
  3. Phillip WoodAug 14, 2024
  4. Junio C HamanoAug 14, 2024
  5. Phillip WoodAug 15, 2024
  6. Junio C HamanoSep 8, 2024
  7. Junio C HamanoSep 8, 2024
  8. rebase: apply and cleanup autostash when rebase fails to startPhillip Wood via GitGitGadget, Sep 2, 2024
  9. Junio C HamanoSep 8, 2024
  10. Junio C HamanoSep 12, 2024

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.