git: list of all changed files including those in submodules

前端 未结 6 1710
死守一世寂寞
死守一世寂寞 2020-12-08 02:53

I would like to get a list of all files, which have changed betweet two commits including those in submodules.

I know I can do this:

git diff --name-         


        
6条回答
  •  温柔的废话
    2020-12-08 03:28

    July 8,2017

    Now to get a diff including that of a submodule, you can use the command -

    git diff --submodule=diff
    

    Note - This has been introduced with Git 2.14.0

    "git diff --submodule=diff" now recurses into nested submodules.

提交回复
热议问题