Merge branch 'jc/nostat'
* jc/nostat: cache_name_compare() compares name and stage, nothing else.
This commit is contained in:
commit
eac6c04ca5
@ -246,9 +246,9 @@ int cache_name_compare(const char *name1, int flags1, const char *name2, int fla
|
|||||||
if (len1 > len2)
|
if (len1 > len2)
|
||||||
return 1;
|
return 1;
|
||||||
|
|
||||||
/* Differences between "assume up-to-date" should not matter. */
|
/* Compare stages */
|
||||||
flags1 &= ~CE_VALID;
|
flags1 &= CE_STAGEMASK;
|
||||||
flags2 &= ~CE_VALID;
|
flags2 &= CE_STAGEMASK;
|
||||||
|
|
||||||
if (flags1 < flags2)
|
if (flags1 < flags2)
|
||||||
return -1;
|
return -1;
|
||||||
|
Loading…
Reference in New Issue
Block a user