Skip to content

Commit

Permalink
chore: fix bug with delimiting of --name-status
Browse files Browse the repository at this point in the history
They're always tab delimited, it just so happens the previous delimiter
was the same.
  • Loading branch information
domharrington committed Jun 17, 2024
1 parent 24be8d7 commit cd5d228
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -177,9 +177,8 @@ const parseCommits = <T extends string>(
}

// Split each line into it's own delimited array
const nameAndStatusDelimited = parseNameStatus.map((d) =>
d.split(delimiter)
);
// Using tab character here because the name status output is always tab separated
const nameAndStatusDelimited = parseNameStatus.map((d) => d.split("\t"));

// 0 will always be status, last will be the filename as it is in the commit,
// anything in between could be the old name if renamed or copied
Expand Down

0 comments on commit cd5d228

Please sign in to comment.