Finding all deleted files in a git diff file

I have been supplied with a git diff file for the changes to a project. I now need to to find all the files that were deleted in that file. Is there a way to isolate deleted files in a git diff file?

I just ended up creating an empty repo locally and incrementally committing each new version of the project to use git diff.

Once that is done a simple command will list all files. The first argument being the first commit id and last the last commit id.

git diff --diff-filter=D --summary xxx yyy | grep delete > delete-summary.txt

This topic was automatically closed 91 days after the last reply. New replies are no longer allowed.