ds300 / ds300/patch-package

Failed patch could left source code partially changed

Open
#450 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
TypeScript
Stars
11.2k
Forks
325
PR merge metrics
No merged PRs in 30d

Description

### Problem
When a patch failed to apply to the source code this could be left partially changed.

### Description

If a patch modify more than a file it could happens that it successfully applies to the first `n` files and then fails when reaching the `n+1` file. In this case there isn't any rollback and the `n` modified files are left edited.

### Expected behaviour

If a patch fails to apply the target source code should be left unchanged.

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.