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

Re: [PATCH] stash: fix handling removed files with --keep-index

From
Junio C Hamano <gitster@pobox.com>
Date
Jul 16, 2019, 20:08 UTC
Message-ID
<xmqqblxt3fpb.fsf@gitster-ct.c.googlers.com>
In-Reply-To
<20190716133501.GG15477@hank.intra.tgummerer.com>
Thomas Gummerer <t.gummerer@gmail.com> writes:
Show 14 quoted lines
> On 07/11, Junio C Hamano wrote:
>> Thomas Gummerer <t.gummerer@gmail.com> writes:
>> 
>> > Fix that behaviour by using 'git restore' which can faithfully restore
>> > the index and working tree.  This also simplifies the code.
>> 
>> Hmph.  I would have preferred to see we stayed away from 'restore'
>> (and used 'checkout' instead, if you must use a Porcelain command),
>> so that the "fix" can go to maintenance tracks, if distro packagers
>> choose to backport it.
>
> Fair enough.  I thought this wouldn't even go to 'maint', since the
> bug exists since a while, so 'git restore' would be fine, but didn't
> think of distro packagers.  I'm happy to use 'checkout' here instead.  

As long as the "--no-overlay" option is used, it is not much better. Backporting the fix goes only back to 2.22 and no earlier.

Previous: Thomas GummererNext: Thomas Gummerer
Message 5 of 7 in “Bug with deleted files and stash-push --keep-idex”
  1. Martin NicolayJul 11, 2019
  2. stash: fix handling removed files with --keep-indexThomas Gummerer, Jul 11, 2019
  3. Junio C HamanoJul 11, 2019
  4. Thomas GummererJul 16, 2019
  5. Junio C HamanoJul 16, 2019
  6. stash: fix handling removed files with --keep-indexThomas Gummerer, Jul 16, 2019
  7. Junio C HamanoJul 16, 2019

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.