diff options
author | Junio C Hamano <junkio@cox.net> | 2006-03-01 23:20:31 -0800 |
---|---|---|
committer | Junio C Hamano <junkio@cox.net> | 2006-03-01 23:20:31 -0800 |
commit | 2486927d2ec9cc05ed7589540d103382d3751c10 (patch) | |
tree | 32314ed02888ff2493c181708b1939484b7b5b89 | |
parent | Merge branch 'jc/tag' (diff) | |
parent | read-tree --aggressive: remove deleted entry from the working tree. (diff) | |
download | tgif-2486927d2ec9cc05ed7589540d103382d3751c10.tar.xz |
Merge branch 'maint'
* maint:
read-tree --aggressive: remove deleted entry from the working tree.
-rw-r--r-- | read-tree.c | 6 |
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. */ |