I just want to get a list of changed files between two revisions, which is simple:
git diff -–name-only commit1 commit2 > /path/to/my/file
B
No-one has mentioned cpio which is easy to type, creates hard links and handles spaces in filenames:
cpio
git diff --name-only $from..$to | cpio -pld outdir