git-apply

I found myself wanting to revert changes made in a previous git commit… but only changes to a specific file (whereas the commit changed multiple files). As usual, git has just the combination of tools that I needed:

git diff $commit ${commit}^ $file | git apply -

Thank you, git.