]> git.ipfire.org Git - thirdparty/git.git/commit - git-stash.sh
git-stash: try reusing cached stat info as much as possible
authorJunio C Hamano <gitster@pobox.com>
Sun, 8 Jul 2007 08:28:18 +0000 (01:28 -0700)
committerJunio C Hamano <gitster@pobox.com>
Mon, 9 Jul 2007 01:24:18 +0000 (18:24 -0700)
commitb24f56d60491416a1c5a8fc71863bbaa0f390f23
treecb5db51d5c5a0cf0f3818d046134d25f4825406c
parentd3a93dc96786847f9d148da42ecadee5f027c9a7
git-stash: try reusing cached stat info as much as possible

Earlier when we read a tree into a temporary index, we read it
from scratch.  Start from the current index and use read-tree -m
to preserve cached stat information as much as possible, in
order to speed up "git add -u".  This makes "git stash" usable
in a source tree of nontrivial size.

Signed-off-by: Junio C Hamano <gitster@pobox.com>
git-stash.sh