authorgravatar for hello@nektro.netMeghan Denny <hello@nektro.net> 2025-01-25 19:36:52 -08:00
committergravatar for hello@nektro.netMeghan Denny <hello@nektro.net> 2025-01-25 19:36:52 -08:00
log807573f84dd2c6ef224ad6e0c0421ad461783d64
tree15dc8f0eb6a2bd1582b79c6d18fbcddf7c735eaf
parentb21e2a88ca4c63bb8732bd74b662187a31199b1d

update to zig 0.13


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

git.zig+10-10
...@@ -13,7 +13,7 @@ pub const BlobId = struct { id: Id };...@@ -13,7 +13,7 @@ pub const BlobId = struct { id: Id };
13pub const TagId = struct { id: Id };13pub const TagId = struct { id: Id };
1414
15pub fn version(alloc: std.mem.Allocator) !string {15pub fn version(alloc: std.mem.Allocator) !string {
16 const result = try std.ChildProcess.exec(.{16 const result = try std.process.Child.run(.{
17 .allocator = alloc,17 .allocator = alloc,
18 .argv = &.{ "git", "--version" },18 .argv = &.{ "git", "--version" },
19 .max_output_bytes = 1024,19 .max_output_bytes = 1024,
...@@ -77,7 +77,7 @@ pub fn getObject(alloc: std.mem.Allocator, dir: std.fs.Dir, obj: Id) !string {...@@ -77,7 +77,7 @@ pub fn getObject(alloc: std.mem.Allocator, dir: std.fs.Dir, obj: Id) !string {
77 const t = tracer.trace(@src(), " {s}", .{obj});77 const t = tracer.trace(@src(), " {s}", .{obj});
78 defer t.end();78 defer t.end();
7979
80 const result = try std.ChildProcess.exec(.{80 const result = try std.process.Child.run(.{
81 .allocator = alloc,81 .allocator = alloc,
82 .cwd_dir = dir,82 .cwd_dir = dir,
83 .argv = &.{ "git", "cat-file", "-p", obj },83 .argv = &.{ "git", "cat-file", "-p", obj },
...@@ -95,7 +95,7 @@ pub fn getObjectSize(alloc: std.mem.Allocator, dir: std.fs.Dir, obj: Id) !u64 {...@@ -95,7 +95,7 @@ pub fn getObjectSize(alloc: std.mem.Allocator, dir: std.fs.Dir, obj: Id) !u64 {
95 const t = tracer.trace(@src(), " {s}", .{obj});95 const t = tracer.trace(@src(), " {s}", .{obj});
96 defer t.end();96 defer t.end();
9797
98 const result = try std.ChildProcess.exec(.{98 const result = try std.process.Child.run(.{
99 .allocator = alloc,99 .allocator = alloc,
100 .cwd_dir = dir,100 .cwd_dir = dir,
101 .argv = &.{ "git", "cat-file", "-s", obj },101 .argv = &.{ "git", "cat-file", "-s", obj },
...@@ -111,7 +111,7 @@ pub fn isType(alloc: std.mem.Allocator, dir: std.fs.Dir, maybeobj: Id, typ: Tree...@@ -111,7 +111,7 @@ pub fn isType(alloc: std.mem.Allocator, dir: std.fs.Dir, maybeobj: Id, typ: Tree
111 const t = tracer.trace(@src(), " {s} = {s} ?", .{ maybeobj, @tagName(typ) });111 const t = tracer.trace(@src(), " {s} = {s} ?", .{ maybeobj, @tagName(typ) });
112 defer t.end();112 defer t.end();
113113
114 const result = try std.ChildProcess.exec(.{114 const result = try std.process.Child.run(.{
115 .allocator = alloc,115 .allocator = alloc,
116 .cwd_dir = dir,116 .cwd_dir = dir,
117 .argv = &.{ "git", "cat-file", "-t", maybeobj },117 .argv = &.{ "git", "cat-file", "-t", maybeobj },
...@@ -128,7 +128,7 @@ pub fn getType(alloc: std.mem.Allocator, dir: std.fs.Dir, obj: Id) !Tree.Object....@@ -128,7 +128,7 @@ pub fn getType(alloc: std.mem.Allocator, dir: std.fs.Dir, obj: Id) !Tree.Object.
128 const t = tracer.trace(@src(), " {s}", .{obj});128 const t = tracer.trace(@src(), " {s}", .{obj});
129 defer t.end();129 defer t.end();
130130
131 const result = try std.ChildProcess.exec(.{131 const result = try std.process.Child.run(.{
132 .allocator = alloc,132 .allocator = alloc,
133 .cwd_dir = dir,133 .cwd_dir = dir,
134 .argv = &.{ "git", "cat-file", "-t", obj },134 .argv = &.{ "git", "cat-file", "-t", obj },
...@@ -147,7 +147,7 @@ pub fn revList(alloc: std.mem.Allocator, dir: std.fs.Dir, comptime count: u31, f...@@ -147,7 +147,7 @@ pub fn revList(alloc: std.mem.Allocator, dir: std.fs.Dir, comptime count: u31, f
147 const t = tracer.trace(@src(), "({d}) {s} -- {s}", .{ count, from.id, sub_path });147 const t = tracer.trace(@src(), "({d}) {s} -- {s}", .{ count, from.id, sub_path });
148 defer t.end();148 defer t.end();
149149
150 const result = try std.ChildProcess.exec(.{150 const result = try std.process.Child.run(.{
151 .allocator = alloc,151 .allocator = alloc,
152 .cwd_dir = dir,152 .cwd_dir = dir,
153 .argv = &.{153 .argv = &.{
...@@ -389,7 +389,7 @@ pub fn getTreeDiff(alloc: std.mem.Allocator, dir: std.fs.Dir, commitid: CommitId...@@ -389,7 +389,7 @@ pub fn getTreeDiff(alloc: std.mem.Allocator, dir: std.fs.Dir, commitid: CommitId
389 defer t.end();389 defer t.end();
390390
391 if (parentid == null) {391 if (parentid == null) {
392 const result = try std.ChildProcess.exec(.{392 const result = try std.process.Child.run(.{
393 .allocator = alloc,393 .allocator = alloc,
394 .cwd_dir = dir,394 .cwd_dir = dir,
395 // 4b825dc642cb6eb9a060e54bf8d69288fbee4904 is a hardcode for the empty tree in git sha1395 // 4b825dc642cb6eb9a060e54bf8d69288fbee4904 is a hardcode for the empty tree in git sha1
...@@ -400,7 +400,7 @@ pub fn getTreeDiff(alloc: std.mem.Allocator, dir: std.fs.Dir, commitid: CommitId...@@ -400,7 +400,7 @@ pub fn getTreeDiff(alloc: std.mem.Allocator, dir: std.fs.Dir, commitid: CommitId
400 std.debug.assert(result.term == .Exited and result.term.Exited == 0);400 std.debug.assert(result.term == .Exited and result.term.Exited == 0);
401 return std.mem.trim(u8, result.stdout, "\n");401 return std.mem.trim(u8, result.stdout, "\n");
402 }402 }
403 const result = try std.ChildProcess.exec(.{403 const result = try std.process.Child.run(.{
404 .allocator = alloc,404 .allocator = alloc,
405 .cwd_dir = dir,405 .cwd_dir = dir,
406 .argv = &.{ "git", "diff-tree", "-p", "--raw", parentid.?.id, commitid.id },406 .argv = &.{ "git", "diff-tree", "-p", "--raw", parentid.?.id, commitid.id },
...@@ -657,7 +657,7 @@ pub fn getBranches(alloc: std.mem.Allocator, dir: std.fs.Dir) ![]const Ref {...@@ -657,7 +657,7 @@ pub fn getBranches(alloc: std.mem.Allocator, dir: std.fs.Dir) ![]const Ref {
657 const t = tracer.trace(@src(), "", .{});657 const t = tracer.trace(@src(), "", .{});
658 defer t.end();658 defer t.end();
659659
660 const result = try std.ChildProcess.exec(.{660 const result = try std.process.Child.run(.{
661 .allocator = alloc,661 .allocator = alloc,
662 .cwd_dir = dir,662 .cwd_dir = dir,
663 .argv = &.{ "git", "show-ref", "--heads" },663 .argv = &.{ "git", "show-ref", "--heads" },
...@@ -687,7 +687,7 @@ pub fn getTags(alloc: std.mem.Allocator, dir: std.fs.Dir) ![]const Ref {...@@ -687,7 +687,7 @@ pub fn getTags(alloc: std.mem.Allocator, dir: std.fs.Dir) ![]const Ref {
687 // a450a23e318c5a8fcba5a52c8fdc2e23584650b3 refs/tags/1.2.5^{}687 // a450a23e318c5a8fcba5a52c8fdc2e23584650b3 refs/tags/1.2.5^{}
688 // 71264720050572b7bad24532ff39951f47d9296a refs/tags/15.3.1688 // 71264720050572b7bad24532ff39951f47d9296a refs/tags/15.3.1
689 // 7dfd3948a9095f0253bfba60fed52895ffbf84bb refs/tags/15.3.2689 // 7dfd3948a9095f0253bfba60fed52895ffbf84bb refs/tags/15.3.2
690 const result = try std.ChildProcess.exec(.{690 const result = try std.process.Child.run(.{
691 .allocator = alloc,691 .allocator = alloc,
692 .cwd_dir = dir,692 .cwd_dir = dir,
693 .argv = &.{ "git", "show-ref", "--tags", "--dereference" },693 .argv = &.{ "git", "show-ref", "--tags", "--dereference" },