List of changed files

How to get list of changed files in a particular changeset? I expected it to be

git diff --name-only a329a7b3b85a2f23d2cc2b6c897dc30fb25fa6a5

for changes made by me in a329a7b3b85a2f23d2cc2b6c897dc30fb25fa6a5 , BUT it returns the changes made in the revision that follows right after mine. So I need to find the id of previous changeset :-S

Is it expected behaviour? Why is it?!


You want

$ git show --oneline --name-only sha

or perhaps

$ git show --format=format: --name-only sha
链接地址: http://www.djcxy.com/p/26666.html

上一篇: 我怎样才能得到我最近签出的git分支清单?

下一篇: 更改的文件列表