Merge branch 'lt/maint-diff-reduce-lstat'
* lt/maint-diff-reduce-lstat: Teach 'git checkout' to preload the index contents Avoid unnecessary 'lstat()' calls in 'get_stat_data()'
This commit is contained in:
@ -214,7 +214,7 @@ static int get_stat_data(struct cache_entry *ce,
|
||||
const unsigned char *sha1 = ce->sha1;
|
||||
unsigned int mode = ce->ce_mode;
|
||||
|
||||
if (!cached) {
|
||||
if (!cached && !ce_uptodate(ce)) {
|
||||
int changed;
|
||||
struct stat st;
|
||||
changed = check_removed(ce, &st);
|
||||
|
Reference in New Issue
Block a user