(patch []byte, mode PatchMode)
| 248 | } |
| 249 | |
| 250 | func (r *Repository) ApplyPatch(patch []byte, mode PatchMode) error { |
| 251 | cmd := append(mode.ApplyCmd, "--allow-overlap") |
| 252 | return r.RunCommandWithStdin(patch, cmd...) |
| 253 | } |
| 254 | |
| 255 | func (r *Repository) CheckPatch(patch []byte, mode PatchMode) error { |
| 256 | cmd := append(mode.CheckCmd, "--allow-overlap") |
no test coverage detected