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

en/merge-restore-to-pristine (Was: Re: What's cooking in git.git (Jul 2022, #04; Wed, 13))

From
Elijah Newren <newren@gmail.com>
Date
Jul 17, 2022, 03:46 UTC
Message-ID
<CABPp-BFzehrH19zRSbLBB42nEs50_UCcfV2B22ZJFYtPCX=Zsw@mail.gmail.com>
In-Reply-To
<xmqq7d4g8onl.fsf@gitster.g>
Hi ZheNing,
On Wed, Jul 13, 2022 at 7:36 PM Junio C Hamano <gitster@pobox.com> wrote:
Show 15 quoted lines
>
> * en/merge-restore-to-pristine (2022-06-21) 6 commits
>  - merge: do not exit restore_state() prematurely
>  - merge: ensure we can actually restore pre-merge state
>  - merge: make restore_state() restore staged state too
>  - merge: fix save_state() to work when there are racy-dirty files
>  - merge: remove unused variable
>  - t6424: make sure a failed merge preserves local changes
>
>  When "git merge" finds that it cannot perform a merge, it should
>  restore the working tree to the state before the command was
>  initiated, but in some corner cases it didn't.
>
>  Needs review.
>  source: <pull.1231.v2.git.1655621424.gitgitgadget@gmail.com>

Looks like other reviewers aren't stepping forward (this has been in "Needs review" for the last 6 "What's cooking" reports), which may suggest others aren't as interested in this fix. Since this was for an issue you reported, and which you even volunteered to help shepherd[1], perhaps you could step forward as a reviewer even if you're not that familiar with the code? Some things to look at and report on:

  * Does it fix the issue?  (You reported that v1 did, again at [1],
but perhaps you could retest for v2?)
  * Does it appear I've addressed the issues Junio brought up about v1?
  * Even if you can't analyze the changes deeply, you can respond to
my patches with a "walk through" where you try to explain what the
different hunks of the patches are doing in your own words.  Even
folks unfamiliar with code areas can sometimes catch simple mistakes
that way, and even if you catch nothing, it means there's another
person more familiar with that code area.

I've had a little more time lately, so if you or someone does catch something in the review, I can try to update the series.

[1] https://lore.kernel.org/git/CAOLTT8RpGGioOyaMw5tkeWXmHpOaBW9UH8JghUvBRQ50ZcDdYQ@mail.gmail.com/
Previous: Han XinNext: ZheNing Hu
Message 6 of 7 in “What's cooking in git.git (Jul 2022, #04; Wed, 13)”
  1. Junio C HamanoJul 14, 2022
  2. ds/rebase-update-ref (was Re: What's cooking in git.git (Jul 2022, #04; Wed, 13))Derrick Stolee, Jul 14, 2022
  3. Junio C HamanoJul 14, 2022
  4. ab/squelch-empty-fsync-traces & hx/unpack-streaming bug (was: What's cooking in git.git (Jul 2022, #04; Wed, 13))Ævar Arnfjörð Bjarmason, Jul 15, 2022
  5. Han XinJul 16, 2022
  6. en/merge-restore-to-pristine (Was: Re: What's cooking in git.git (Jul 2022, #04; Wed, 13))Elijah Newren, Jul 17, 2022
  7. ZheNing HuJul 17, 2022

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.