Caleb
Caleb

Reputation: 5408

How can I get a list of files changed in a git commit?

I need a list of files (specifically regular files, not symlinks, directories, submodules, etc.) changed in a git commit. I am aware (as in e.g. this answer) that git diff-tree --name-status gives quite useful output showing a list of changed objects and what kind of change happened. This includes giving a T flag if the type changed, but I don't see any way to filter it to just objects of a specific type.

What plumbing command can I use to get a list of just files whose type (presumably after the commit is applied, not before) are of type regular file?

Upvotes: 0

Views: 148

Answers (0)

Related Questions