authorgravatar for hello@nektro.netMeghan Denny <hello@nektro.net> 2026-05-18 00:48:43 -07:00
committergravatar for hello@nektro.netMeghan Denny <hello@nektro.net> 2026-05-18 00:48:43 -07:00
logc32f692aff65076bef79787429c3f09dbb1b6311
tree57dd1d2fc1714d5b20f3b0a267c4e0e9c4a4f639
parentd8c28f72f5d5bc1f9bf10e0ffa78fdc0595bda2c
signaturebadge-check Signed by SSH key SHA256:4hHJbtBRU58AYXwjL7fkz2fnQHdiye8x1QpTCQ0sHNw

parseTreeDiff: fix file name when has a space in it and is binary change

ps: the tab is so you can jump to it and be at the start of the name

1 files changed, 1 insertions(+), 1 deletions(-)

git.zig+1-1
...@@ -331,7 +331,7 @@ pub fn parseTreeDiff(alloc: std.mem.Allocator, input: string) !TreeDiff {...@@ -331,7 +331,7 @@ pub fn parseTreeDiff(alloc: std.mem.Allocator, input: string) !TreeDiff {
331 const before_tree = ensureObjId(BlobId, jter.next().?);331 const before_tree = ensureObjId(BlobId, jter.next().?);
332 const after_tree = ensureObjId(BlobId, jter.next().?);332 const after_tree = ensureObjId(BlobId, jter.next().?);
333333
334 var kter = std.mem.splitScalar(u8, jter.next().?, '\t'); // why is there a tab here git. why?334 var kter = std.mem.splitScalar(u8, jter.rest(), '\t');
335 const action_s = kter.next().?;335 const action_s = kter.next().?;
336336
337 try overview.append(.{337 try overview.append(.{