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

Re: Produce contents of index with existing directory as cache

From
FWFlorian Weimer <fweimer@redhat.com>
Date
Aug 31, 2017, 09:58 UTC
Message-ID
<8ca2e078-88d2-83db-bc28-5f8fbf3c0dd6@redhat.com>
In-Reply-To
<CANghgrTFjybxfmn=DzKwvoqRP3GA3sWiGFtYdEfPZtWmyznq9g@mail.gmail.com>
On 08/30/2017 04:55 PM, David Lloyd wrote:
Show 5 quoted lines
> On Wed, Aug 30, 2017 at 9:18 AM, Florian Weimer <fweimer@redhat.com> wrote:
>> On 08/30/2017 04:15 PM, David Lloyd wrote:
>>> git reset --hard ?
>>
>> That doesn't remove unstaged files.
> Ah, does it not?  Perhaps add a "git clean -d -f" as well.

It would have to be “git clean -d -f -f -x” (not the two “-f”) to be on the safe side. I wonder what else I'm missing, though, and if this is completely reliable and has the same effect as removing the tree before “git checkout-index”.

Thanks, Florian

Previous: David Lloyd
Message 5 of 5 in “Produce contents of index with existing directory as cache”
  1. Florian WeimerAug 30, 2017
  2. David LloydAug 30, 2017
  3. Florian WeimerAug 30, 2017
  4. David LloydAug 30, 2017
  5. Florian WeimerAug 31, 2017

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.