projects
/
git.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
combined
(merge:
5fd51c7
613f027
)
Merge branch 'lt/oneway' into next
author
Junio C Hamano
<junkio@cox.net>
Mon, 15 May 2006 07:48:00 +0000
(
00:48
-0700)
committer
Junio C Hamano
<junkio@cox.net>
Mon, 15 May 2006 07:48:00 +0000
(
00:48
-0700)
* lt/oneway:
read-tree -u one-way merge fix to check out locally modified paths.
1
2
read-tree.c
patch
|
diff1
|
diff2
|
blob
|
history
diff --cc
read-tree.c
index
7c83031
,
59b6a6b
..
3f02339
---
1
/
read-tree.c
---
2
/
read-tree.c
+++ b/
read-tree.c
@@@
-718,11
-683,12
+718,14
@@@
static int oneway_merge(struct cache_en
return error("Cannot do a oneway merge of %d trees",
merge_size);
- if (!a)
+ if (!a) {
+ invalidate_ce_path(old);
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);