Teach git-checkout-index to read filenames from stdin.