Merge branch 'lt/oneway' into next
* lt/oneway: read-tree -u one-way merge fix to check out locally modified paths.
This commit is contained in:
@ -723,6 +723,9 @@ static int oneway_merge(struct cache_entry **src)
|
|||||||
return deleted_entry(old, NULL);
|
return deleted_entry(old, NULL);
|
||||||
}
|
}
|
||||||
if (old && same(old, a)) {
|
if (old && same(old, a)) {
|
||||||
|
struct stat st;
|
||||||
|
if (lstat(old->name, &st) || ce_match_stat(old, &st, 1))
|
||||||
|
old->ce_flags |= htons(CE_UPDATE);
|
||||||
return keep_entry(old);
|
return keep_entry(old);
|
||||||
}
|
}
|
||||||
return merged_entry(a, NULL);
|
return merged_entry(a, NULL);
|
||||||
|
Reference in New Issue
Block a user