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-only --diff-filter=ACMR ${revision} HEAD
It returns a list of files, including the submodule-path, but not the files within.
Example: I've updated a submodule. I commited the super-project. Now I want to get a list of all files which have been modified.
Do you know a way to get this done?
git submodule update --remote --recursive
followed by yourforeach
diff
command shows nothing (because it just runsgit diff
in each submodule). How can we see the diff of the update we just ran? – Johanna