Just replace --name-only
with --name-status
. This way git will show if the file is added, deleted or just modified.
If you are only interested in the new (=added) files you can simply grep for ^A
:
git diff --name-status branch1..branch2 | grep ^A