Commit Diff


commit - 487cd7d2bc0f29c4fb6800c8c815be552ad06ea6
commit + 46ea77db89a0945a013f032c6c6a94779126412f
blob - 8049aab224eea3bbfc105be06c2c34e8f89c21d3
blob + da3c26b1d829a76ecc75775909353f514f618f42
--- 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);