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

Re: [PATCH] rebase -i: restore autostash on abort

From
Junio C Hamano <gitster@pobox.com>
Date
Jun 28, 2016, 21:13 UTC
Message-ID
<xmqqshvx6mpe.fsf@gitster.mtv.corp.google.com>
In-Reply-To
<vpqvb0tqc46.fsf@anie.imag.fr>
Matthieu Moy <Matthieu.Moy@grenoble-inp.fr> writes:
> It is "interesting" if you mean "matches real-life use-case", as it
> corresponds to the case where the user killed the editor (as reported by
> Daniel Hahler indeed, "Abort with ":cq", which will make Vim exit
> non-zero").

Yes. It is an interesting failure mode in that sense. But breakage of such a basic mode is something an end-user is likely to notice immediately, so in that sense, having such a test alone is not all that interesting.

Show 6 quoted lines
> If you mean "likely to trigger nasty bugs", then indeed testing the case
> when apply_autostash fails is interesting: for example, calling
> die_abort when "stash apply" fails is tempting, but would lead to
> infinite recursion (it doesn't seem to be the case, but a test would be
> nice). Setting the editor to something that modifies uncommited-content
> before 'false' should do the trick.
Previous: Matthieu MoyNext: Patrick Steinhardt
Message 4 of 7 in “rebase -i: restore autostash on abort”
  1. rebase -i: restore autostash on abortPatrick Steinhardt, Jun 28, 2016
  2. Junio C HamanoJun 28, 2016
  3. Matthieu MoyJun 28, 2016
  4. Junio C HamanoJun 28, 2016
  5. Patrick SteinhardtJun 29, 2016
  6. rebase -i: restore autostash on abortPatrick Steinhardt, Jun 29, 2016
  7. Johannes SchindelinJun 29, 2016

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.