A small implementation of `patch` for use on windows