summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLibravatar Junio C Hamano <junkio@cox.net>2006-03-01 23:20:31 -0800
committerLibravatar Junio C Hamano <junkio@cox.net>2006-03-01 23:20:31 -0800
commit2486927d2ec9cc05ed7589540d103382d3751c10 (patch)
tree32314ed02888ff2493c181708b1939484b7b5b89
parentMerge branch 'jc/tag' (diff)
parentread-tree --aggressive: remove deleted entry from the working tree. (diff)
downloadtgif-2486927d2ec9cc05ed7589540d103382d3751c10.tar.xz
Merge branch 'maint'
* maint: read-tree --aggressive: remove deleted entry from the working tree.
-rw-r--r--read-tree.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/read-tree.c b/read-tree.c
index f39fe5ca65..c56b572d05 100644
--- a/read-tree.c
+++ b/read-tree.c
@@ -560,9 +560,11 @@ static int threeway_merge(struct cache_entry **stages)
*/
if ((head_deleted && remote_deleted) ||
(head_deleted && remote && remote_match) ||
- (remote_deleted && head && head_match))
+ (remote_deleted && head && head_match)) {
+ if (index)
+ return deleted_entry(index, index);
return 0;
-
+ }
/*
* Added in both, identically.
*/