From: David Lloyd <david.lloyd@redhat.com>
To: Florian Weimer <fweimer@redhat.com>
Cc: git@vger.kernel.org
Subject: Re: Produce contents of index with existing directory as cache
Date: Wed, 30 Aug 2017 09:15:21 -0500 [thread overview]
Message-ID: <CANghgrS9hZyA4vWU=4PZuYue3iLsLx7ObbT_VgRGSXpACwNkcg@mail.gmail.com> (raw)
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:
> 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
next prev parent reply other threads:[~2017-08-30 14:16 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-08-30 14:11 Produce contents of index with existing directory as cache Florian Weimer
2017-08-30 14:15 ` David Lloyd [this message]
2017-08-30 14:18 ` Florian Weimer
2017-08-30 14:55 ` David Lloyd
2017-08-31 9:58 ` Florian Weimer
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: http://vger.kernel.org/majordomo-info.html
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to='CANghgrS9hZyA4vWU=4PZuYue3iLsLx7ObbT_VgRGSXpACwNkcg@mail.gmail.com' \
--to=david.lloyd@redhat.com \
--cc=fweimer@redhat.com \
--cc=git@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://80x24.org/mirrors/git.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).