tags:

views:

16

answers:

2

I have a patch file containing the output from git diff. I want to get a summary of all the files that, according to the patch file, have been added or modified. What command can I use to achieve this?

+1  A: 

grep '+++' mydiff.patch seems to do the trick.

I can also use git diff --names-only which is probably the better approach.

Nathan
+1  A: 

patchutils includes a lsdiff utility.

ninjalj