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 };
1313pub const TagId = struct { id: Id };
1414
1515pub fn version(alloc: std.mem.Allocator) !string {
16 const result = try std.ChildProcess.exec(.{
16 const result = try std.process.Child.run(.{
1717 .allocator = alloc,
1818 .argv = &.{ "git", "--version" },
1919 .max_output_bytes = 1024,
......@@ -77,7 +77,7 @@ pub fn getObject(alloc: std.mem.Allocator, dir: std.fs.Dir, obj: Id) !string {
7777 const t = tracer.trace(@src(), " {s}", .{obj});
7878 defer t.end();
7979
80 const result = try std.ChildProcess.exec(.{
80 const result = try std.process.Child.run(.{
8181 .allocator = alloc,
8282 .cwd_dir = dir,
8383 .argv = &.{ "git", "cat-file", "-p", obj },
......@@ -95,7 +95,7 @@ pub fn getObjectSize(alloc: std.mem.Allocator, dir: std.fs.Dir, obj: Id) !u64 {
9595 const t = tracer.trace(@src(), " {s}", .{obj});
9696 defer t.end();
9797
98 const result = try std.ChildProcess.exec(.{
98 const result = try std.process.Child.run(.{
9999 .allocator = alloc,
100100 .cwd_dir = dir,
101101 .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
111111 const t = tracer.trace(@src(), " {s} = {s} ?", .{ maybeobj, @tagName(typ) });
112112 defer t.end();
113113
114 const result = try std.ChildProcess.exec(.{
114 const result = try std.process.Child.run(.{
115115 .allocator = alloc,
116116 .cwd_dir = dir,
117117 .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.
128128 const t = tracer.trace(@src(), " {s}", .{obj});
129129 defer t.end();
130130
131 const result = try std.ChildProcess.exec(.{
131 const result = try std.process.Child.run(.{
132132 .allocator = alloc,
133133 .cwd_dir = dir,
134134 .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
147147 const t = tracer.trace(@src(), "({d}) {s} -- {s}", .{ count, from.id, sub_path });
148148 defer t.end();
149149
150 const result = try std.ChildProcess.exec(.{
150 const result = try std.process.Child.run(.{
151151 .allocator = alloc,
152152 .cwd_dir = dir,
153153 .argv = &.{
......@@ -389,7 +389,7 @@ pub fn getTreeDiff(alloc: std.mem.Allocator, dir: std.fs.Dir, commitid: CommitId
389389 defer t.end();
390390
391391 if (parentid == null) {
392 const result = try std.ChildProcess.exec(.{
392 const result = try std.process.Child.run(.{
393393 .allocator = alloc,
394394 .cwd_dir = dir,
395395 // 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
400400 std.debug.assert(result.term == .Exited and result.term.Exited == 0);
401401 return std.mem.trim(u8, result.stdout, "\n");
402402 }
403 const result = try std.ChildProcess.exec(.{
403 const result = try std.process.Child.run(.{
404404 .allocator = alloc,
405405 .cwd_dir = dir,
406406 .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 {
657657 const t = tracer.trace(@src(), "", .{});
658658 defer t.end();
659659
660 const result = try std.ChildProcess.exec(.{
660 const result = try std.process.Child.run(.{
661661 .allocator = alloc,
662662 .cwd_dir = dir,
663663 .argv = &.{ "git", "show-ref", "--heads" },
......@@ -687,7 +687,7 @@ pub fn getTags(alloc: std.mem.Allocator, dir: std.fs.Dir) ![]const Ref {
687687 // a450a23e318c5a8fcba5a52c8fdc2e23584650b3 refs/tags/1.2.5^{}
688688 // 71264720050572b7bad24532ff39951f47d9296a refs/tags/15.3.1
689689 // 7dfd3948a9095f0253bfba60fed52895ffbf84bb refs/tags/15.3.2
690 const result = try std.ChildProcess.exec(.{
690 const result = try std.process.Child.run(.{
691691 .allocator = alloc,
692692 .cwd_dir = dir,
693693 .argv = &.{ "git", "show-ref", "--tags", "--dereference" },