| ... | ... | @@ -775,13 +775,13 @@ pub const Ref = struct { |
| 775 | 775 | }; |
| 776 | 776 | |
| 777 | 777 | // TODO make this inspect .git/objects |
| 778 | | pub fn getBlame(alloc: std.mem.Allocator, dir: std.fs.Dir, at: CommitId, sub_path: string) !string { |
| 778 | pub fn getBlame(alloc: std.mem.Allocator, dir: nfs.Dir, at: CommitId, sub_path: string) !string { |
| 779 | 779 | const t = tracer.trace(@src(), " {s} -- {s}", .{ at.id, sub_path }); |
| 780 | 780 | defer t.end(); |
| 781 | 781 | |
| 782 | 782 | const result = try std.process.Child.run(.{ |
| 783 | 783 | .allocator = alloc, |
| 784 | | .cwd_dir = dir, |
| 784 | .cwd_dir = dir.to_std(), |
| 785 | 785 | .argv = &.{ "git", "blame", "-p", at.id, "--", sub_path }, |
| 786 | 786 | .max_output_bytes = 1024 * 1024 * 1024, |
| 787 | 787 | }); |