Allow git.apply_patch() to take a base revision