Commit 46ea77db89a0945a013f032c6c6a94779126412f

Stefan Sperling 2021-12-20T16:18:41

sort paths in got log -Pp and tog's diff view the same way as in the diff reported by and fix confirmed by naddy

1
2
3
4
5
6
7
8
9
10
11
12
13
diff --git a/lib/diff.c b/lib/diff.c
index 8049aab..da3c26b 100644
--- a/lib/diff.c
+++ b/lib/diff.c
@@ -626,7 +626,7 @@ got_diff_tree_collect_changed_paths(void *arg, struct got_blob_object *blob1,
 			change->status = GOT_STATUS_MODE_CHANGE;
 	}
 
-	err = got_pathlist_insert(NULL, paths, path, change);
+	err = got_pathlist_append(paths, path, change);
 done:
 	if (err) {
 		free(path);