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

Re: Re: [Internet]Re: [PATCH v5] merge: avoid write merge state when unable to write index

From
goldofzky@gmail.com <goldofzky@gmail.com>
Date
Jun 17, 2024, 09:17 UTC
Message-ID
<202406171717292856283@gmail.com>
In-Reply-To
<202406171101133354904@gmail.com>
> [2] From a usability perspective, the merge state should not be written when the index is being
> written (merge conflicts are not considered failures). To avoid losing changes in the source branch,

"the merge state should not be written when the index is being written" should be: the merge state should not be written if the index write fails.

> users can only execute 'git merge --abort' and try 'git merge' again. However, if the merge state is
> not written in the first place, the user only needs to retry 'git merge'.
>In other words, writing the merge state after the index write fails is meaningless and could
>potentially cause Git to lose changes.
Previous: goldofzky@gmail.comNext: Kyle Zhao via GitGitGadget
Message 10 of 11 in “merge: avoid write merge state when unable to write index”
  1. merge: avoid write merge state when unable to write indexKyle Zhao via GitGitGadget, May 16, 2024
  2. merge: avoid write merge state when unable to write indexKyle Zhao via GitGitGadget, May 16, 2024
  3. Junio C HamanoMay 16, 2024
  4. merge: avoid write merge state when unable to write indexKyle Zhao via GitGitGadget, May 17, 2024
  5. merge: avoid write merge state when unable to write indexKyle Zhao via GitGitGadget, May 17, 2024
  6. goldofzky@gmail.comJun 12, 2024
  7. merge: avoid write merge state when unable to write indexKyle Zhao via GitGitGadget, Jun 12, 2024
  8. Junio C HamanoJun 13, 2024
  9. goldofzky@gmail.comJun 17, 2024
  10. goldofzky@gmail.comJun 17, 2024
  11. merge: avoid write merge state when unable to write indexKyle Zhao via GitGitGadget, Jun 17, 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.