From d64fbcd9dfcf686e95636a06f3d2d5b1ad53282c Mon Sep 17 00:00:00 2001 From: Meghan Denny Date: Sat, 6 May 2023 16:11:19 -0700 Subject: [PATCH] getTreeDiff: was rendering commits backwards --- git.zig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/git.zig b/git.zig index e24e39bfe1c3b15428a5d3a9af40643cb6be3419..acc6ab967a8d5ea57c6a1a70a93fe88bfba63efd 100644 --- a/git.zig +++ b/git.zig @@ -303,7 +303,7 @@ pub fn getTreeDiff(alloc: std.mem.Allocator, dir: std.fs.Dir, commitid: CommitId const result = try std.ChildProcess.exec(.{ .allocator = alloc, .cwd_dir = dir, - .argv = &.{ "git", "diff-tree", "-p", "--raw", commitid.id, parentid.id }, + .argv = &.{ "git", "diff-tree", "-p", "--raw", parentid.id, commitid.id }, .max_output_bytes = 1024 * 1024 * 1024, }); return std.mem.trim(u8, result.stdout, "\n"); -- 2.54.0