Skip to content

Renamed files with git diff --name-status #991

@adamsol

Description

@adamsol

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.

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions