author | Junio C Hamano <gitster@pobox.com> | |
Sun, 8 Jul 2007 08:28:18 +0000 (01:28 -0700) | ||
committer | Junio C Hamano <gitster@pobox.com> | |
Mon, 9 Jul 2007 01:24:18 +0000 (18:24 -0700) | ||
commit | b24f56d60491416a1c5a8fc71863bbaa0f390f23 | |
tree | cb5db51d5c5a0cf0f3818d046134d25f4825406c | tree | snapshot |
parent | d3a93dc96786847f9d148da42ecadee5f027c9a7 | commit | diff |
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>
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 | diff | blob | history |