| ... | @@ -234,6 +234,7 @@ fn diff_lockfile(alloc: std.mem.Allocator) !void { | ... | @@ -234,6 +234,7 @@ fn diff_lockfile(alloc: std.mem.Allocator) !void { |
| 234 | | 234 | |
| 235 | fn diff_printchange(comptime testt: string, comptime replacement: string, item: std.StringHashMap(DiffChange).Entry) bool { | 235 | fn diff_printchange(comptime testt: string, comptime replacement: string, item: std.StringHashMap(DiffChange).Entry) bool { |
| 236 | if (std.mem.startsWith(u8, item.key_ptr.*, testt)) { | 236 | if (std.mem.startsWith(u8, item.key_ptr.*, testt)) { |
| | 237 | if (std.mem.eql(u8, item.value_ptr.from, item.value_ptr.to)) return true; |
| 237 | std.debug.print(replacement, .{ item.key_ptr.*[4..], item.value_ptr.from, item.value_ptr.to }); | 238 | std.debug.print(replacement, .{ item.key_ptr.*[4..], item.value_ptr.from, item.value_ptr.to }); |
| 238 | return true; | 239 | return true; |
| 239 | } | 240 | } |