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:
commit
e8efc9036f
@ -723,6 +723,9 @@ static int oneway_merge(struct cache_entry **src)
|
||||
return deleted_entry(old, NULL);
|
||||
}
|
||||
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 merged_entry(a, NULL);
|
||||
|
Loading…
Reference in New Issue
Block a user