Commit Diff
--- 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);