Commit Diff


commit - 4b3f9dac335ebd6cb7b838589a3f6b9766a49cc7
commit + 4c71f93b66de6eee9e07d65a1f6ae8b13dd576b3
blob - 55c41e201b3a3b22ac019685dd47322b2a7150d4
blob + cf029b294f1f9ecc44d13fa837ab6ade2bb442fb
--- lib/diff.c
+++ lib/diff.c
@@ -626,7 +626,7 @@ got_diff_tree_collect_changed_paths(void *arg, struct 
 			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);