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

Re: Produce contents of index with existing directory as cache

From
David Lloyd <david.lloyd@redhat.com>
Date
Aug 30, 2017, 14:15 UTC
Message-ID
<CANghgrS9hZyA4vWU=4PZuYue3iLsLx7ObbT_VgRGSXpACwNkcg@mail.gmail.com>
In-Reply-To
<5a9e4efd-8c48-487e-4a9f-9362a944c992@redhat.com>
git reset --hard ?
On Wed, Aug 30, 2017 at 9:11 AM, Florian Weimer <fweimer@redhat.com> wrote:
Show 13 quoted lines
> Is there a variant of “git checkout-index” which will produce the
> existing index contents, like “git checkout-index” would do with an
> empty directory, but can reuse an existing directory tree, to avoid
> writing all files from scratch?
>
> I'm writing some analysis scripts which need to change a checked-out
> working tree.  Right now I'm throwing away the tree after making the
> changes and create the next tree (which is expected to be quite similar
> in contents) from scratch, starting with an empty directory.  This is
> quite slow.
>
> Thanks,
> Florian
-- 
- DML
Previous: Florian WeimerNext: Florian Weimer
Message 2 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.