summaryrefslogtreecommitdiff
path: root/read-tree.c
diff options
context:
space:
mode:
authorLibravatar Junio C Hamano <junkio@cox.net>2006-05-14 16:58:44 -0700
committerLibravatar Junio C Hamano <junkio@cox.net>2006-05-14 16:58:44 -0700
commit5708a6666dd9f6d233836fdc86afef0a408c01b6 (patch)
treece9b5036804fa69b113e9d8a16dfc1ee40502401 /read-tree.c
parentMerge branch 'lt/diff' into next (diff)
parentSimplify "git reset --hard" (diff)
downloadtgif-5708a6666dd9f6d233836fdc86afef0a408c01b6.tar.xz
Merge branch 'lt/oneway' into next
* lt/oneway: Simplify "git reset --hard" Allow one-way tree merge to remove old files
Diffstat (limited to 'read-tree.c')
-rw-r--r--read-tree.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/read-tree.c b/read-tree.c
index c25385d79f..7c830312c4 100644
--- a/read-tree.c
+++ b/read-tree.c
@@ -720,7 +720,7 @@ static int oneway_merge(struct cache_entry **src)
if (!a) {
invalidate_ce_path(old);
- return 0;
+ return deleted_entry(old, NULL);
}
if (old && same(old, a)) {
return keep_entry(old);