Browse Source

Merge branch 'lt/oneway' into next

* lt/oneway:
  read-tree -u one-way merge fix to check out locally modified paths.
maint
Junio C Hamano 19 years ago
parent
commit
e8efc9036f
  1. 3
      read-tree.c

3
read-tree.c

@ -723,6 +723,9 @@ static int oneway_merge(struct cache_entry **src) @@ -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…
Cancel
Save