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

Produce contents of index with existing directory as cache

From
FWFlorian Weimer <fweimer@redhat.com>
Date
Aug 30, 2017, 14:11 UTC
Message-ID
<5a9e4efd-8c48-487e-4a9f-9362a944c992@redhat.com>

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

Next: David Lloyd
Message 1 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.