revert code for git patch