Closed kentcdodds closed 1 year ago
@kentcdodds Sorry for the inconvenience and Thanks for the reporting. There is currently no handling for the git diff with the --no-prefix
option. I've created a PR to handle this. https://github.com/yeonjuan/parse-git-diff/pull/21
@kentcdodds It's fixed and released v0.0.12
.
You can use the noPrefix option
parseGitDiff(OUTPUT, {
noPrefix: true
});
I believe this is now fixed! Thanks!
Here's the diff I have:
And here's the parsed output:
The path in the input and output is different:
Notice the difference in the paths is the
b/
. I tracked this down to this line: https://github.com/yeonjuan/parse-git-diff/blob/f20636c34be8339785c6159d868ad74cb450958f/src/parse-git-diff.ts#L284