I am stream the contents of the files. That sounds good.

Also, I don't think there is an option to automatically remove trailing whitespace in git when you commit. There's `core.whitespace` which will show /warn you of trailing whitespace. And there's `apply.whitespace` which will strip trailing whitespace from patches. But there's nothing in git to automatically remove trailing whitespace when you commit (aside from a pre-commit hook).