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:
Junio C Hamano 2006-05-15 00:48:00 -07:00
commit e8efc9036f

View File

@ -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);