jes5199 jes5199 - 2 months ago 14
Git Question

How to have git log show filenames like svn log -v

SVN's log has a "-v" mode that outputs filenames of files changed in each commit, like so:

jes5199$ svn log -v
------------------------------------------------------------------------
r1 | jes5199 | 2007-01-03 14:39:41 -0800 (Wed, 03 Jan 2007) | 1 line
Changed paths:
A /AUTHORS
A /COPYING
A /ChangeLog
A /EVOLUTION
A /INSTALL
A /MacOSX


Is there a quick way to get a list of changed files in each commit in git?

Answer

Try one of the following.

git log --name-status

or

git log --name-only

or

git log --stat