$git->apply(...) method added.

Please merge to upstream.
Thank you!