projects
/
git.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
combined
(merge:
c621197
c68998f
)
Merge branch 'lt/oneway' into next
author
Junio C Hamano
<junkio@cox.net>
Sun, 14 May 2006 23:58:44 +0000
(16:58 -0700)
committer
Junio C Hamano
<junkio@cox.net>
Sun, 14 May 2006 23:58:44 +0000
(16:58 -0700)
* lt/oneway:
Simplify "git reset --hard"
Allow one-way tree merge to remove old files
1
2
read-tree.c
patch
|
diff1
|
diff2
|
blob
|
history
diff --cc
read-tree.c
index
c25385d
,
11157f4
..
7c83031
---
1
/
read-tree.c
---
2
/
read-tree.c
+++ b/
read-tree.c
@@@
-718,10
-683,8
+718,10
@@@
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 0;
+ return deleted_entry(old, NULL);
+ }
if (old && same(old, a)) {
return keep_entry(old);
}