steprobe
steprobe

Reputation: 1699

Git list files plus their modifications

For a given commit, I can list all the files affected by doing:

$ git show --pretty="format:" --name-only <hash>

file1.cpp
file2.cpp
file3.cpp

But what I'm after, is to see the modified/deleted/added tag such as:

M file1.cpp
D file2.cpp
A file3.cpp

Is there a format that can do this? Thanks Stephen

Upvotes: 1

Views: 129

Answers (1)

Ryan Stewart
Ryan Stewart

Reputation: 128919

git show --pretty="format:" --name-status <hash>

Upvotes: 2

Related Questions