| ... | ... | @@ -269,11 +269,11 @@ pub fn getTreeDiffOnlyStat(alloc: std.mem.Allocator, dir: nfs.Dir, commitid: Com |
| 269 | 269 | if (parentid == null) { |
| 270 | 270 | // 4b825dc642cb6eb9a060e54bf8d69288fbee4904 is a hardcode for the empty tree in git sha1 |
| 271 | 271 | // result of `printf | git hash-object -t tree --stdin` |
| 272 | | const result = try root.child_process.run(alloc, dir, .ignore, .pipe, .ignore, 1024 * 1024 * 1024, &.{ "git", "diff-tree", "--stat", "4b825dc642cb6eb9a060e54bf8d69288fbee4904", commitid.id }); |
| 272 | const result = try root.child_process.run(alloc, dir, .ignore, .pipe, .ignore, 1024 * 1024 * 1024, &.{ "git", "diff-tree", "--stat=2048", "--stat-graph-width=32", "4b825dc642cb6eb9a060e54bf8d69288fbee4904", commitid.id }); |
| 273 | 273 | std.debug.assert(result.term == .exited and result.term.exited == 0); |
| 274 | 274 | return result.stdout; |
| 275 | 275 | } |
| 276 | | const result = try root.child_process.run(alloc, dir, .ignore, .pipe, .ignore, 1024 * 1024 * 1024, &.{ "git", "diff-tree", "--stat", parentid.?.id, commitid.id }); |
| 276 | const result = try root.child_process.run(alloc, dir, .ignore, .pipe, .ignore, 1024 * 1024 * 1024, &.{ "git", "diff-tree", "--stat=2048", "--stat-graph-width=32", parentid.?.id, commitid.id }); |
| 277 | 277 | std.debug.assert(result.term == .exited and result.term.exited == 0); |
| 278 | 278 | return result.stdout; |
| 279 | 279 | } |