Simply do:
git diff commit1 commit2 -- $(cat /path/to/listfile)
You can alias this command by the following line to your .gitconfig
:
[alias]
listdiff = "!f() { git diff $1 $2 -- $(cat \"$3\"); }; f"
and call it with
git listdiff commit1 commit2 path/to/file