Merge branch 'jc/nostat'
* jc/nostat: "Assume unchanged" git: --really-refresh fix.
This commit is contained in:
commit
0509ef3d21
@ -161,8 +161,13 @@ static struct cache_entry *refresh_entry(struct cache_entry *ce, int really)
|
|||||||
return ERR_PTR(-errno);
|
return ERR_PTR(-errno);
|
||||||
|
|
||||||
changed = ce_match_stat(ce, &st, really);
|
changed = ce_match_stat(ce, &st, really);
|
||||||
if (!changed)
|
if (!changed) {
|
||||||
|
if (really && assume_unchanged &&
|
||||||
|
!(ce->ce_flags & htons(CE_VALID)))
|
||||||
|
; /* mark this one VALID again */
|
||||||
|
else
|
||||||
return NULL;
|
return NULL;
|
||||||
|
}
|
||||||
|
|
||||||
if (ce_modified(ce, &st, really))
|
if (ce_modified(ce, &st, really))
|
||||||
return ERR_PTR(-EINVAL);
|
return ERR_PTR(-EINVAL);
|
||||||
|
Loading…
Reference in New Issue
Block a user