authorgravatar for hello@nektro.netMeghan Denny <hello@nektro.net> 2026-03-13 19:39:05 -07:00
committergravatar for hello@nektro.netMeghan Denny <hello@nektro.net> 2026-03-13 19:39:05 -07:00
log5c44c26be7735dd3f6c95dea4c2738bc679748ad
tree460a6e4f4642443a65944337a85ba80c20cf0a79
parent12e0765577d2e0d4c26267f3b8fd781aed84d365
signaturebadge-check Signed by SSH key SHA256:4hHJbtBRU58AYXwjL7fkz2fnQHdiye8x1QpTCQ0sHNw

parseTreeDiff: empty diff actually is valid


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

git.zig+6
...@@ -604,6 +604,12 @@ pub fn parseTreeDiff(alloc: std.mem.Allocator, input: string) !TreeDiff {...@@ -604,6 +604,12 @@ pub fn parseTreeDiff(alloc: std.mem.Allocator, input: string) !TreeDiff {
604 .sub_path = kter.rest(),604 .sub_path = kter.rest(),
605 });605 });
606 }606 }
607 if (lineiter.peek() == null) {
608 return TreeDiff{
609 .overview = overview.items,
610 .diffs = diffs.items,
611 };
612 }
607613
608 // diff --git a/notes/all_packages.txt b/notes/all_packages.txt614 // diff --git a/notes/all_packages.txt b/notes/all_packages.txt
609 // index c06b41d..e8f91cf 100644615 // index c06b41d..e8f91cf 100644