| ... | @@ -1214,7 +1214,6 @@ pub const Repository = struct { | ... | @@ -1214,7 +1214,6 @@ pub const Repository = struct { |
| 1214 | const tree = try r.getTreeA(arena, tree_id.id); | 1214 | const tree = try r.getTreeA(arena, tree_id.id); |
| 1215 | for (result.keys(), 0..) |k, i| { | 1215 | for (result.keys(), 0..) |k, i| { |
| 1216 | if (set.isSet(i)) continue; | 1216 | if (set.isSet(i)) continue; |
| 1217 | const original = base_tree.get(k).?; | | |
| 1218 | const new = tree.get(k); | 1217 | const new = tree.get(k); |
| 1219 | if (new == null) { | 1218 | if (new == null) { |
| 1220 | found += 1; | 1219 | found += 1; |
| ... | @@ -1223,7 +1222,7 @@ pub const Repository = struct { | ... | @@ -1223,7 +1222,7 @@ pub const Repository = struct { |
| 1223 | // std.log.debug("found [{d}/{d}] objects after searching {d} commits", .{ found, total, searched }); | 1222 | // std.log.debug("found [{d}/{d}] objects after searching {d} commits", .{ found, total, searched }); |
| 1224 | continue; | 1223 | continue; |
| 1225 | } | 1224 | } |
| 1226 | if (!std.mem.eql(u8, new.?.id.erase(), original.id.erase())) { | 1225 | if (!std.mem.eql(u8, new.?.id.erase(), base_tree.children.items.id[i].erase())) { |
| 1227 | found += 1; | 1226 | found += 1; |
| 1228 | result.putAssumeCapacity(k, commit_id_prev); | 1227 | result.putAssumeCapacity(k, commit_id_prev); |
| 1229 | set.set(i); | 1228 | set.set(i); |