diff --git a/src/git.ts b/src/git.ts index a8aa1d7..55f2d47 100644 --- a/src/git.ts +++ b/src/git.ts @@ -149,5 +149,8 @@ export async function getFileChanges( }, }); + additions.sort((a, b) => (a.path > b.path ? 1 : -1)); + deletions.sort((a, b) => (a.path > b.path ? 1 : -1)); + return { additions, deletions }; }