git-js icon indicating copy to clipboard operation
git-js copied to clipboard

Renamed files with `git diff --name-status`

Open adamsol opened this issue 1 year ago • 0 comments

With this call:

simpleGit().diffSummary([hash1, hash2, '--name-status']);

I'm getting only the new file path for renamed files. Is there a way to get also the previous path?

With --stat or --numstat, I can get file renames in a format like this: src/{foo.txt => bar.txt}, but it's not easy to parse, and I'd like to have file statuses as well.

adamsol avatar Apr 14 '24 16:04 adamsol