Show changed files with diff of branches

With the command git diff targetbranch you can see all changes from one branch to another. But sometimes you only want to see the files changed, not the actual changes. For this there is a extra flag called --name-only:

$ git diff --name-only master