stg diff / files: don't update directory cache
authorPaolo 'Blaisorblade' Giarrusso <blaisorblade@yahoo.it>
Fri, 16 Sep 2005 19:35:15 +0000 (21:35 +0200)
committerCatalin Marinas <catalin.marinas@gmail.com>
Sat, 17 Sep 2005 07:55:04 +0000 (08:55 +0100)
commit537ddf3fcbb207659094a19acd83ac7b83d4deb1
tree22c222ac1a91f9c8e9c8f3ac7641772cbe7911fc
parent9f00453e337990a34a432a08340799fe628bd4d2
stg diff / files: don't update directory cache

Do git-update-cache only when diffing with the working tree, not otherwise.
Spending something like 1min for a stg files is bad - yes, my laptop
was really busy and the Linux tree was probably cache-cold, but that's just
not needed.

Also, in diffstat we currently do it both by hand and by calling git.diff.
And in files there's no need at all for that - even the comments says that
"files" has only to do with committed changes.

Signed-off-by: Paolo 'Blaisorblade' Giarrusso <blaisorblade@yahoo.it>
stgit/git.py