gitapply patch file

C++
git apply <filename>
Source

Also in C++: