diff --git a/README.md b/README.md index 28a8c8dd41ece796cbfdce4d63184502f1b977ac..77a191bca6a1624db37b587de7869b31284d24f6 100644 --- a/README.md +++ b/README.md @@ -3,7 +3,7 @@ ![loc](https://sloc.xyz/github/nektro/zig-git) [![license](https://img.shields.io/github/license/nektro/zig-git.svg)](https://github.com/nektro/zig-git/blob/master/LICENSE) [![nektro @ github sponsors](https://img.shields.io/badge/sponsors-nektro-purple?logo=github)](https://github.com/sponsors/nektro) -[![Zig](https://img.shields.io/badge/Zig-0.14-f7a41d)](https://ziglang.org/) +[![Zig](https://img.shields.io/badge/Zig-0.15-f7a41d)](https://ziglang.org/) [![Zigmod](https://img.shields.io/badge/Zigmod-latest-f7a41d)](https://github.com/nektro/zigmod) Inspect into the depths of your .git folder purely from Zig. diff --git a/git.zig b/git.zig index 8b7dd3b803278dafb20ba2ab8cf7d6884c283843..41085628ce4222870a99ac0c1e727d4fb097c5ff 100644 --- a/git.zig +++ b/git.zig @@ -165,7 +165,7 @@ pub fn parseCommit(alloc: std.mem.Allocator, commitfile: string) !Commit { var iter = std.mem.splitScalar(u8, commitfile, '\n'); var result: Commit = undefined; - var parents = std.ArrayList(CommitId).init(alloc); + var parents = std.array_list.Managed(CommitId).init(alloc); errdefer parents.deinit(); while (true) { const line = iter.next() orelse break; @@ -284,8 +284,8 @@ pub fn parseTreeDiff(alloc: std.mem.Allocator, input: string) !TreeDiff { defer t.end(); var lineiter = std.mem.splitScalar(u8, input, '\n'); - var overview = std.ArrayList(TreeDiff.StateLine).init(alloc); - var diffs = std.ArrayList(TreeDiff.Diff).init(alloc); + var overview = std.array_list.Managed(TreeDiff.StateLine).init(alloc); + var diffs = std.array_list.Managed(TreeDiff.Diff).init(alloc); var meta = std.mem.zeroes(TreeDiff.Meta); while (lineiter.next()) |lin| {